apk wont install on older devices

@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

  • BlackCloakGSBlackCloakGS Member, PRO Posts: 2,250

    @Approw what version of java and Mac are you using?

  • ApprowApprow Member Posts: 703

    @BlackCloakGS‌ My mac is running on OSX 10.8.5, and I have Java 7 update 67.

  • BlackCloakGSBlackCloakGS Member, PRO Posts: 2,250

    @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.

  • ApprowApprow Member Posts: 703

    @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

  • ookami007ookami007 Member Posts: 581

    I had to install java 6 in a different directory and use it for zipalign and now it works fine.

  • ApprowApprow Member Posts: 703

    @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?

  • BlackCloakGSBlackCloakGS Member, PRO Posts: 2,250
    edited August 2014

    @Approw‌ looks correct

    you might need the JDK as well

  • ApprowApprow Member Posts: 703

    @BlackCloakGS‌ This is not the JDK?

  • BlackCloakGSBlackCloakGS Member, PRO Posts: 2,250

    no that is just the run time JDK is a separate install.

  • ApprowApprow Member Posts: 703
    edited August 2014

    @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

  • BlackCloakGSBlackCloakGS Member, PRO Posts: 2,250
    edited August 2014

    @Approw go a head and submit a support ticket and CS and i will help you with your issue.

  • mc99093mc99093 Member, PRO Posts: 133
  • ApprowApprow Member Posts: 703

    @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?

  • ApprowApprow Member Posts: 703

    @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

    • In Terminal:
      zipalign 4 path/to/signedapk yourappsname.apk

    Finally, verify the file

    • In Terminal:
      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.

Sign In or Register to comment.