Android 14 (API Level 34)

I am using Corona 2024.3707, Java 11, Gradle 8.9.

If you’re building for Android, you’ll need to use 3706. Something broke for Android builds in 3707.

1 Like

Umm… The Original Title of this post is Android 14 (API Level 34)

Since Solar2d version 3707 fails to build for Android, this problem has not been resolved? We have apps that need to be updated to use API 34, if not they will be removed from the app store August 30th!

Am I missing something? We still need a release that will fix this issue.

The API update is still being worked on. (Build 3707 was to fix an iOS issue, breaking Android builds was an unfortunate side effect that will hopefully be remedied soon, along with the API update.)
In the meantime, requesting an extension from Google is quick and easy:

As a short term fix, I’ve forced my builds to use API 34 by adding a gradle file to my project.

The file goes here: yourProject/AndroidResources/corona.gradle

and the content of the file is:

android.defaultConfig.ndk.abiFilters "armeabi-v7a",  "arm64-v8a"

ext["excludeCoronaPlugin"] = true
ext["includeCoronaPlugin"] = ["dependencies"]

android {
    compileSdkVersion 34

    defaultConfig {
        minSdkVersion 26
        targetSdkVersion 34
    }
}

I’ve had a build out for a week or two now which uses this workaround, and I haven’t encountered any problems from it.

5 Likes

Did you upload the version with this file to the store? Did the Android warning disappear?

Yes, I uploaded to the store and the warning went away. I can’t say for certain that this workaround will work for everyone, as you may be using plugins or features that I do not use. However we use a lot of plugins including a bunch of ad mediation and I haven’t encountered any increase in errors/crashes/ANRs.

2 Likes

Also receiving build error, similar to others. Built fine with 3699.

ERROR:C:\Users\me\.gradle\caches\transforms-3\e95fefe9e0be489136c0dc2d76aa5df8\transformed\jetified-Corona\jars\classes.jar: D8: java.lang.NullPointerException

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.

Thanks a lot, perfectly working on my side, no more SDK warning message!

@alanFlickGames is this issue going to impact builds already approved that work fine on API 33?

@vlad and @Scott_Harrison Seems to me the days of Solar2D are limited, due to the fact that neither Vlad or Scott are working as much as they were previously on Solar2D. There does not appear to be any transparency about this, except however, that Vlad has imformed me of an issue keeping him from working. I am understanding, but @vlad and @Scott_Harrison , so many people count on Solar2D to be up-to-date and if your lives have changed, we deserve to know. Especially those of us who support you on Patreon, right?

1 Like

Objectively speaking, I agree that it’s fine to provide periodic updates on the overall progress.

Anyway, Solar2D 3708 is up.

3 Likes

Thank you @clang; I edited the previous post. Do you think it is now more appropriate?

1 Like

Thanks. You’re very gentlemanly.

Since I don’t know about the progress of Vlad and Scott’s work behind the scenes, I prefer not to give my opinion so as not to be unfair, but for some time now I’ve also been upset about not knowing anything about the progress of Solar2D, about things to be done in the future, about problems, set dates for things to happen, etc… This kind of causes apprehension for those who depend on the tool to create and update their applications. I completely agree that there should be more transparency about Solar2D, not in relation to demanding more agility, etc. But simply to provide information and a guide for those who don’t know anything about the future of the tool.

UPDATE FINALLY!

Solar2D Build 3708 is still resulting in Build Error 256.

1 Like

3708 has been refreshed with the jre17 update, so make sure you download the new version and not the old one.

1 Like

3708 is ok for me at least for successful builds.

Nothing new here, delays are normal for Solar2D as every other SDK more or less popular.
At the end everything is fixed and the fight continues :smiley:

4 Likes

Here it compiled normally with 3708 version, I have already updated and uploaded the app to the store, thanks to everyone involved.

1 Like

Downloaded 3708 today, build failed with:

08:59:16.516 * What went wrong:
08:59:16.516 Could not resolve all artifacts for configuration ‘classpath’.
08:59:16.516 > Could not find com.beust:klaxon:5.0.1.
08:59:16.516 Searched in the following locations:
08:59:16.516 - https://dl.google.com/dl/android/maven2/com/beust/klaxon/5.0.1/klaxon-5.0.1.pom
08:59:16.516 - https://jcenter.bintray.com/com/beust/klaxon/5.0.1/klaxon-5.0.1.pom
08:59:16.516 Required by:
08:59:16.516 unspecified:unspecified:unspecified