App does not install on Android device - certificate error / invalid digest Corona asset widget theme?

Using Corona Pro 2014.2401, Windows 8.

I get a security exception when I try to build and install any of my apps on an Android device:

11-10 12:07:10.759: E/Finsky(6617): [99831] CertificateUtils.collectCertificates: Error while collecting certificates 11-10 12:07:10.759: E/Finsky(6617): java.lang.SecurityException: META-INF/APPFAMIL.SF has invalid digest for res/raw/corona\_asset\_widget\_theme\_onoff\_mask\_android\_holo.png in /storage/sdcard0/Android/data/com.dropbox.android/files/scratch/AppFamilyGames/BalloonPop/APK/Balloon Pop.apk

I first noticed the problem today, was working fine last week.

Only thing I know I’ve done since it last worked is to install JDK 1.7, but the PATH and JAVA_HOME system variables still point to JDK 1.6.

I’ve seen similar threads in the forum, like http://forums.coronalabs.com/topic/29712-android-failure-install-parse-failed-certificate-encoding/, but this problem is affecting all my builds + I’m on Windows + I’ve not found any ‘strange’ files lying around.

The full logcat output:

11-10 12:07:09.287: E/PackageParser(6617): Package se.appfamily.balloonpopfree has no certificates at entry AndroidManifest.xml; ignoring! 11-10 12:07:09.337: E/Trace(6655): error opening trace file: No such file or directory (2) 11-10 12:07:10.759: E/Finsky(6617): [99831] CertificateUtils.collectCertificates: Error while collecting certificates 11-10 12:07:10.759: E/Finsky(6617): java.lang.SecurityException: META-INF/APPFAMIL.SF has invalid digest for res/raw/corona\_asset\_widget\_theme\_onoff\_mask\_android\_holo.png in /storage/sdcard0/Android/data/com.dropbox.android/files/scratch/AppFamilyGames/BalloonPop/APK/Balloon Pop.apk 11-10 12:07:10.759: E/Finsky(6617): at java.util.jar.JarVerifier.invalidDigest(JarVerifier.java:131) 11-10 12:07:10.759: E/Finsky(6617): at java.util.jar.JarVerifier.verifyCertificate(JarVerifier.java:350) 11-10 12:07:10.759: E/Finsky(6617): at java.util.jar.JarVerifier.readCertificates(JarVerifier.java:258) 11-10 12:07:10.759: E/Finsky(6617): at java.util.jar.JarFile.getInputStream(JarFile.java:378) 11-10 12:07:10.759: E/Finsky(6617): at com.google.android.vending.verifier.CertificateUtils.loadCertificates(CertificateUtils.java:57) 11-10 12:07:10.759: E/Finsky(6617): at com.google.android.vending.verifier.CertificateUtils.collectCertificates(CertificateUtils.java:24) 11-10 12:07:10.759: E/Finsky(6617): at com.google.android.vending.verifier.PackageVerificationService.getPackageInfo(PackageVerificationService.java:940) 11-10 12:07:10.759: E/Finsky(6617): at com.google.android.vending.verifier.PackageVerificationService.access$000(PackageVerificationService.java:67) 11-10 12:07:10.759: E/Finsky(6617): at com.google.android.vending.verifier.PackageVerificationService$WorkerTask.doInBackground(PackageVerificationService.java:358) 11-10 12:07:10.759: E/Finsky(6617): at com.google.android.vending.verifier.PackageVerificationService$WorkerTask.doInBackground(PackageVerificationService.java:337) 11-10 12:07:10.759: E/Finsky(6617): at android.os.AsyncTask$2.call(AsyncTask.java:287) 11-10 12:07:10.759: E/Finsky(6617): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305) 11-10 12:07:10.759: E/Finsky(6617): at java.util.concurrent.FutureTask.run(FutureTask.java:137) 11-10 12:07:10.759: E/Finsky(6617): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) 11-10 12:07:10.759: E/Finsky(6617): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) 11-10 12:07:10.759: E/Finsky(6617): at java.lang.Thread.run(Thread.java:864)

After uninstalling JDK 7 it works. 

When will Corona support JDK 7? It will be a real PITA for me to install/uninstall JDK 7 as needed by other projects. Or is there some way to force Corona Simulator / build to use JDK 6?

Read some old forum posts, unclear to me what multi-version Java setup is supported and how to achieve it. Please advise.

http://forums.coronalabs.com/topic/29628-jdk-6-needed-for-android-builds/page-2

http://coronalabs.com/blog/2013/05/15/wednesday-faqs-java-and-windows-simulator/

Continuing my monologue, I’ve removed my dependencies on Java 7 from my other projects for the time being, so the PITA part is gone.

After uninstalling JDK 7 it works. 

When will Corona support JDK 7? It will be a real PITA for me to install/uninstall JDK 7 as needed by other projects. Or is there some way to force Corona Simulator / build to use JDK 6?

Read some old forum posts, unclear to me what multi-version Java setup is supported and how to achieve it. Please advise.

http://forums.coronalabs.com/topic/29628-jdk-6-needed-for-android-builds/page-2

http://coronalabs.com/blog/2013/05/15/wednesday-faqs-java-and-windows-simulator/

Continuing my monologue, I’ve removed my dependencies on Java 7 from my other projects for the time being, so the PITA part is gone.

Have you solved?

Although JAVA 6 is default (on Mac) Corona use Java 7 (I use for Android development), and I have the java.lang.SecurityException on 4.1.1 Android Device.

Thank you

Have you solved?

Although JAVA 6 is default (on Mac) Corona use Java 7 (I use for Android development), and I have the java.lang.SecurityException on 4.1.1 Android Device.

Thank you