Installing the apk file on Phone

I have no problems getting my Corona project to build an apk file, but it won’t install on my phone, a Samsung Galaxy S2, which has the ArmV7 processor. To test I have tried installing on the Eclipse android emulator which I’m running as AVD 2.2 . I get this error:

C:\Program Files (x86)\Android\android-sdk\platform-tools>adb install Stuck_scen
es_new.apk
119 KB/s (4927673 bytes in 40.242s)
pkg: /data/local/tmp/Stuck_scenes_new.apk
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]

C:\Program Files (x86)\Android\android-sdk\platform-tools>

I have also tried building one of the sample apps available on the Corona simulator and got the same results. I have installed apk files built with Eclipse before but I don’t know what is going wrong with Corona builds.

[import]uid: 208811 topic_id: 34393 reply_id: 334393[/import]

It sounds like the APK is being signed with the JDK 7 tools instead of the JDK 6 tools. JDK 7 uses a different encryption by default and has been known to cause this error. This typically happens when the JDK 7 directory is set in your system/user “PATH” environment variable. The current work-around is to remove the JDK 7 from your “PATH”.

Note: Corona does not need the JDK 6 directory set in your “PATH” environment variable because Corona gets a hold of it via the registry. The problem is that this environment variable is taking priority when the final build step hunts down the JDK’s sign tool.

I hope this helps! [import]uid: 32256 topic_id: 34393 reply_id: 136824[/import]

Thank you so much. I have tried some many things trying to get my .apk to install on the phone or emulator! Simply removing JDK 7 from PATH in environmental variable works a treat! [import]uid: 208811 topic_id: 34393 reply_id: 136889[/import]

It sounds like the APK is being signed with the JDK 7 tools instead of the JDK 6 tools. JDK 7 uses a different encryption by default and has been known to cause this error. This typically happens when the JDK 7 directory is set in your system/user “PATH” environment variable. The current work-around is to remove the JDK 7 from your “PATH”.

Note: Corona does not need the JDK 6 directory set in your “PATH” environment variable because Corona gets a hold of it via the registry. The problem is that this environment variable is taking priority when the final build step hunts down the JDK’s sign tool.

I hope this helps! [import]uid: 32256 topic_id: 34393 reply_id: 136824[/import]

Thank you so much. I have tried some many things trying to get my .apk to install on the phone or emulator! Simply removing JDK 7 from PATH in environmental variable works a treat! [import]uid: 208811 topic_id: 34393 reply_id: 136889[/import]