Hi Corona;
I am worried that I am in a HEAP of trouble with several quite successful apps on Google Play.
I am worried that I cannot build any of these apps with a Corona Build newer than Build #3176 (last November build). I’ve done a full day of testing. This is as quick a summary of my problem as I can write:
A) Four successful apps (80,000 or so DAUs) have all used the same signing certificate (keystore) that we created back in about 2012.
B) Last July, we ran into a Google Play Keystore issue that was well discussed in this thread: https://forums.coronalabs.com/topic/69279-suddenly-unable-to-build-for-android-due-to-keystore-issue/ (see my long post on page 1 of the thread and Rob Miracle’s insights following that).
C) We solved our Google Play problem (they didn’t like our signature algorithm) at that time by uninstalling Java SDK 1.8 and reverting to the older Java SDK 1.6.
D) Everything was copacetic with building and submitting Google Play updates and new apps with Corona Builds up through last November. And we continued to build and submit to Google successfully using Build #3174 into this year.
E) However, we have seen the same significant jump in ANRs and OpenAL errors that others are dealing with. Plus there its the whole GPDR thing and information collected by Corona. So, I was looking forward to doing updates on a pair of the apps this week using the latest Corona build(s). And THIS IS THE PROBLEM. All attempts with newer Corona Builds result in a final message reading “ERROR: Build Failed: Error code: 256”.
F) My findings are:
— I can build this app for Google Play without error using all builds through #3176 (Nov. 16, 2017)
— The build failed error is consistent beginning with #3177 through 3301. Note — the “changes” listed for #3177 were simply “Maintenance, Maintenance”
— I can successfully build any of your sample apps with my signing certificate (keystore) with builds #3176 and earlier. I get the same failure building sample apps using this certificate with #3177 and forward.
— I can build any of my apps successfully with ANY build (older or newer) using the debug keystore.
— Note that I have copied my keystore file to different directories so that your build tool would re-prompt me for the password. And this didn’t solve anything.
— Also, when I made a spanking new signing certificate today to test – the new certificate builds my apps fine on all Corona Builds.
I “think” that you folks made a change in #3177 that related to either using Java SDK 1.6 and my “old” signing certificate’s security hash or identity . . . or simply related to an older signing certificate such as mine.
As you can see, I am really stuck in time and desperate for some help/guidance. The implications of changing a signing certificate are described (by others) as:
“If you change the certificate an application is signed with, it is now a different application because it comes from a different author. This different application can’t be uploaded to Market as an update to the original application, nor can it be installed onto a device as an update.”
Rob . . . or anyone at Corona . . . can you offer any guidance or suggest a path to a fix? I’ve pasted the last large chunks of build output below in case it can give you insight.
Many thanks!
Steve Bullock
END OF BUILD OUTPUT . . . . can-delete-file: [available] Unable to find /var/folders/rh/64lk69hn4673h16f0tfqk7c00000gn/T/CLtmp8Imwol/MyCoronaActivity-signed.apk delete-file: Skipped because property 'can.delete.file' not set. [antcall] Exiting /Applications/Corona-3306/Corona Simulator.app/Contents/Resources/build.xml. [exec] Current OS is Mac OS X [exec] Executing 'jarsigner' with arguments: [exec] '-signedjar' [exec] 'MyCoronaActivity-signed.apk' [exec] '-keystore' [exec] '/Work Files/Work Files/Corona Files for Mobile/Steve Projects/Android\_Keystore/adveractive\_release.keystore' [exec] '-storepass' [exec] 'l@k3shore' [exec] '-digestalg' [exec] 'SHA1' [exec] 'MyCoronaActivity-unsigned.apk' [exec] 'adverkey' [exec] [exec] The ' characters around the executable and arguments are [exec] not part of the command. May 30 05:38:30.762 [exec] Enter key password for adverkey: jarsigner: you must enter key password May 30 05:38:31.114 [exec] Result: 1 May 30 05:38:31.114 sign-apk: May 30 05:38:31.124 [antcall] Exiting /Applications/Corona-3306/Corona Simulator.app/Contents/Resources/build.xml. May 30 05:38:31.125 BUILD FAILED /Applications/Corona-3306/Corona Simulator.app/Contents/Resources/build.xml:525: The following error occurred while executing this line: /Applications/Corona-3306/Corona Simulator.app/Contents/Resources/build.xml:417: Failed to sign the APK. at org.apache.tools.ant.taskdefs.Exit.execute(Exit.java:164) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397) at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38) at org.apache.tools.ant.Project.executeTargets(Project.java:1249) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442) at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397) at org.apache.tools.ant.Project.executeTarget(Project.java:1366) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1249) at org.apache.tools.ant.Main.runBuild(Main.java:801) at org.apache.tools.ant.Main.startAnt(Main.java:218) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) Total time: 7 seconds May 30 05:38:31.765 Android build failed (256) after 91 seconds May 30 05:38:32.145 ERROR: Build Failed: Error code: 256