Android Build Error 256 in 3707, 3708 and 3709

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.

BUILD FAILED in 1m 55s
Android build failed (256) after 119 seconds
ERROR: Build Failed: Error code: 256

Have you tried completely uninstalling Solar2D and installing the new version 3709?
I see your log still shows Build: 2024.3707 (this is the version where this error previously existed).

@Kan98 I was just testing it with 3707 to make sure my report was accurate, but I just verified again that 3709 is NOT WORKING either. FYI, I use ZeroBraneStudio and when I change the version number in user.lua, I have to exit the editor and rerun it for the build to catch the latest version.

So, here’s the error again with 3709. Confirmation Build Error 256 exists in latest version.
Program starting as ‘"/Applications/Corona-3709/Corona Simulator.app/Contents/MacOS/Corona Simulator" -no-console YES “/Volumes/2020/Dropbox/Projects/triviaChallenge/main.lua”’.

Have you tried building one of the sample projects to see if it’s a project-based problem or a system-based problem?

Does your project still build successfully on 3706? (Sorry if you mentioned this in one of your other posts, but I don’t see that information in this post.)

Are you version-locking your plugins, or are you using a plugin that hasn’t been updated since 3708 came out? (3707 was just a bad build- it didn’t include the new Android API level, so you need to date plugin updates from 3708.)

Also- step zero is rebooting your computer. :smiley:

Of two apps that have/had this problem, 1 appears to be related to a custom plugin we had made; and 2 appears to be a few lines of code we needed to add in build.settings to resolve an undocumented issue relating to one of an AD related plugin; issue resolved by @BK_PANARA :slight_smile:

FYI, the “Ad” related plugin I’m referring to must related to a plugin created by @Scott_Harrison as my game is using his IronSource plugins. See the screen shot below for the code we added to build.settings.

Screenshot 2024-09-06 at 4.24.31 AM

1 Like

@Scott_Harrison Is this admob related possibly? I don’t currently use your admob adapter but I do get issues with the build if I try adding the adapter into my build.settings. Will appreciate if you could a take a moment to update your documentation in this case.

Yes @famousdoggstudios , If you are using Admob plugin or any plugin which is using (android:nane=“com.google.android. gms.ads.APPLICATION_ID”) and getting build error then you need to include this tools:replace code under Property tag same as @troylyndon posted above.

1 Like

@Scott_Harrison Perhaps you should document the property tag code that @BK_PANARA implemented to fix this issue for your Advertising plugins you create?

1 Like

Working on Update for Iron Src will include this in doc notes

Thanks
Scott

@Scott_Harrison great! Will existing builds still work?