Android 14 (API Level 34)

Seems klaxon 5.0.1 been removed on jcenter???
Refer to https://mvnrepository.com/artifact/com.beust/klaxon?repo=jcenter

You can try edit the template/build.gradle.kts and template/settings.gradle.kts inside the android-template.zip, on macOS was locate in /Applications/Corona-3708/Native/Corona/android/resource/android-template.zip, and zip it back, do a Android build.

template/build.gradle.kts:

buildscript {
    repositories {
        google()
-        jcenter()
+        mavenCentral()
    }
    dependencies {
        classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21")
        classpath("com.android.tools.build:gradle:8.5.1")
-        classpath("com.beust:klaxon:5.0.1")
+        classpath("com.beust:klaxon:5.6")
    }
}

allprojects {
    repositories {
        google()
-        jcenter()
+        mavenCentral()
        // maven(url = "https:// some custom repo")
        val nativeDir = if (System.getProperty("os.name").toLowerCase().contains("windows")) {
            System.getenv("CORONA_ROOT")

template/settings.gradle.kts:

buildscript {
    repositories {
        google()
-        jcenter()
+        mavenCentral()
    }
    dependencies {
-        classpath("com.beust:klaxon:5.0.1")
+        classpath("com.beust:klaxon:5.6")
    }
}
3 Likes

thanks
android-template.zip (119.5 KB)
working zip file

1 Like

I also got the Klaxon error, and tried modifying the files mentioned inside android-template.zip but am still getting this build error “1” :

BUILD FAILED
/Applications/Corona-3708/Corona Simulator.app/Contents/Resources/build.xml:99: /var/folders/y1/g3_t3pmd41d6p1p23ysn1v440000gn/T/CLtmpySdh02/template does not exist.

All my problems are cleared up in v3709. Thanks all!

2 Likes