apk wont install on older devices
Approw
Member Posts: 703
@BlackCloakGS It sucks that I keep having trouble. I installed the signed apk on my nexus 7(2013 model and runs on kitkat) and it works fine. when I install it on my HTC HD2 (running android 2.3.3) it gives me the message "application not installed", same thing goes for my LG Optimus 3D (runs on ICS). I recently updated the android tools and sdk, after that the zipalign was also missing, but I found it back in another folder.
This app is build for amazon appstore, so maybe it will work fine after they signed the app?
Comments
@Approw what version of java and Mac are you using?
@BlackCloakGS My mac is running on OSX 10.8.5, and I have Java 7 update 67.
@Approw you might want to try Java 6 to see if that helps. We do support Java 7 but I have had issue with from time to time.
@BlackCloakGS Okay I will try that. can I just leave the installed SDK stuff? I used the zipalign 20.0.0, and installed everything from API level 10 to 20
I had to install java 6 in a different directory and use it for zipalign and now it works fine.
@ookami007 what do you mean with install in a different directory? I just removed java 7 and replaced it with 6. @BlackCloakGS I also deleted the JavaAppletPlugin.plugin, but after installing 6 it isn't there anymore.
Is this the right version?
@Approw looks correct
you might need the JDK as well
@BlackCloakGS This is not the JDK?
no that is just the run time JDK is a separate install.
@BlackCloakGS I can only find JDK 7:( Tried it like this but its still not installing on android 2.3.3.
These are all the packages I've installed, but as I mentioned before, the zipalign was gone after updating a few packages. So I copied the zipalign from the 20.0.0 folder to the tools folder, not sure if this was a smart move.
Edit: forgot to mark the tools folder
@Approw go a head and submit a support ticket and CS and i will help you with your issue.
Android doesn't support java 7 you have to use 6. Here is a link for a JDK 6.
http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html#jdk-6u45-oth-JPR
@mc99093 Thanks for your reply. I already installed JDK 6, but it still wont install the signed.apk. reinstalled the android SDK but still nothing... should I also relocate the SDK path in eclipse?
@BlackCloakGS I found a temporary solution for fixing:
-App cannon be installed
-Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
Manually sign the apk to test this theory.
Download the unsigned APK from Portfolio (the Download APK button)
In Terminal use this command:
jarsigner -sigalg MD5withRSA -digestalg SHA1 -keystore path/to/keystore -signedjar
signed.apk path/to/unsignedapk aliasname
After that, align the file
zipalign 4 path/to/signedapk yourappsname.apk
Finally, verify the file
jarsigner -verify path/to/yourappsname.apk
In the end my mac is still using JDK 7, even though JDK 6 is installed and is confirmed in terminal. When I have more time I will dig into this issue.
I hope this can help other people with the same issue.