Android Build Error 256 in 3707, 3708 and 3709
This issue has been a problem since version 3707. It remains a problem in version 3709.
Here is my console output when I attempt to create a build with version 3709.
Any help is very much appreciated.
Program starting as ‘"/Applications/Corona-3709/Corona Simulator.app/Contents/MacOS/Corona Simulator" -no-console YES “/Volumes/2020/Dropbox/Projects/triviaChallenge/main.lua”’.
Program ‘Corona Simulator’ started in ‘/Volumes/2020/Dropbox/Projects/triviaChallenge’ (pid: 87687).
WARNING: issue found in /Volumes/2020/Dropbox/Projects/triviaChallenge/build.settings:
WARNING: unrecognized key: settings.macos.budleResourcesDirectory (string)
WARNING: unrecognized key: settings.iphone.plist.FirebaseAppDelegateProxyEnabled (boolean)
WARNING: unrecognized key: settings.iphone.plist.GADApplicationIdentifier (string)
WARNING: unrecognized key: settings.window.resizeable (boolean)
Copyright (C) 2009-2024 C o r o n a L a b s I n c .
Version: 3.0.0
Build: 2024.3707
Loading project from: /Volumes/2020/Dropbox/Projects/triviaChallenge
Project sandbox folder: ~/Library/Application Support/Corona Simulator/triviaChallenge-9240A39F2AE49F633081F384E2D678B1
Platform: 1290x2796 / x86_64 / 14.5.0 / Apple M1 Pro / 2.1 Metal - 88.1 / 2024.3707 / en-US | US | en_US | en
2024-08-31 13:24:52.844 Corona Simulator[87687:27306947] WARNING: Secure coding is automatically enabled for restorable state! However, not on all supported macOS versions of this application. Opt-in to secure coding explicitly by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState:.
Using openjdk version “17.0.6” 2023-01-17
OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
OpenJDK 64-Bit Server VM (build 17.0.6+0-17.0.6b829.9-10027231, mixed mode)
Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
Warning:
uses the SHA1withRSA signature algorithm which is considered a security risk. This algorithm will be disabled in a future update.
uses a 1024-bit RSA key which is considered a security risk. This key size will be disabled in a future update.
Testing credentials for ‘/Volumes/2020/Dropbox/Projects/GoogleAppSigningWithKeystore - do not delete/playthebibleMadeByBhavin.keystore’:
Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
jar signed.
Warning:
The signer’s certificate is self-signed.
The RSA signing key has a keysize of 1024 which is considered a security risk. This key size will be disabled in a future update.
The timestamp will expire on 2031-11-09.
Using openjdk version “17.0.6” 2023-01-17
OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
OpenJDK 64-Bit Server VM (build 17.0.6+0-17.0.6b829.9-10027231, mixed mode)
Note: debug info is not being stripped from application (settings.build.neverStripDebugInfo = true)
BUILD SUCCESSFUL
Total time: 1 second
ERROR:/Users/troylyndon/.gradle/caches/transforms-3/e95fefe9e0be489136c0dc2d76aa5df8/transformed/jetified-Corona/jars/classes.jar: D8: java.lang.NullPointerException: Cannot invoke “String.length()” because “” is null
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:App:desugarReleaseFileDependencies’.
A failure occurred while executing com.android.build.gradle.internal.tasks.DexFileDependenciesTask$DexFileDependenciesWorkerAction
Error while dexing.
- Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
- Get more help at https://help.gradle.org
BUILD FAILED in 1m 55s
Android build failed (256) after 119 seconds
ERROR: Build Failed: Error code: 256