Just posting here for future developers that face that problem.
I just faced my problem getting the following error when trying to install my compiled Android app on the device using adb:
MBP:Build Renato$ adb install "My Corona App.apk" 5721 KB/s (14602869 bytes in 2.492s) pkg: /data/local/tmp/My Corona App.apk Failure [INSTALL\_PARSE\_FAILED\_CERTIFICATE\_ENCODING]
Looking on the forum I found one solution (related to wrong java version installed) but that wasn’t my case. So, after hours looking for an answer, I found the solution to my problem in the middle of several posts exchanges between Rob and Aidin.
So I decided to make this post more clear for future devs facing the same.
If you face that problem, try the following:
-
Try building and installing a Corona Sample project. If the problem still persists, Corona may be using the wrong JDK version. So, just make sure that you have the JDK 1.6 installed (MAC users can download it here.) New Corona builds (I am using 2016.2817) shows on the console the Java version being used during the build process. For example, my Corona console shows:
Feb 16 03:27:31.610 Using java version “1.6.0_65” Java™ SE Runtime Environment (build 1.6.0_65-b14-468-11M4833) Java HotSpot™ 64-Bit Server VM (build 20.65-b04-468, mixed mode)
-
If you can install a Corona Sample project but not yours, the problem is in your project. That can be:
a ) Having a Icon filename (with no extension) inside your project folder. (This is common for devs building directly from the Corona Viewer folder)
b ) Making a reference to a resource file (usually images) that is not found due to a case-sensitive issue. (like, your file is “myimage.png” and you have in your code display.newImage(“myImage.png”)
The solution to my case was the “Icon” file, but from my research these 3 situation above can generate that
INSTALL_PARSE_FAILED_CERTIFICATE_ENCODING error.
Hope that it helps you.