Apk does not build

Hi guys, need some help. Lately I’ve been trying to create an APK for my game but there are errors in the build.

The log is as follows:

Checking build options.
Downloading game archive from https://gd-games-in.s3.eu-west-1.amazonaws.com/game-archive-1753180236721-509599/game-archive.zip?AWSAccessKeyId=ASIAR6M7W2IPIOJOWPKE&Expires=1753181250&Signature=IhycHCFJnRUm%2BerCmo1Yd%2B4WIvU%3D&X-Amzn-Trace-Id=Root%3D1-687f68bd-591b2a3d54f2e5491bea42f9%3BParent%3D3566541a4ba1933a%3BSampled%3D0%3BLineage%3D2%3A35ef1dc2%3A0&x-amz-security-token=IQoJb3JpZ2luX2VjENL%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJGMEQCIFBWxoWTyY1JywPD%2FuuPjnaA8NOyUGLl6DSII6qSSCmbAiBXyojyYxKoE6%2BI1OMenpiQR%2FTXf2ZAmGTXsv7ONQ5ZDCqmAwjr%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAAaDDEzNDAxNTc5OTgzOCIMrpTHRr0%2BmwM9LK6aKvoC7AYDrifPFuRkP2e9hDor%2BWY2yBpXz52zXsR%2B7PRuf4gbLP60PwjdWGO4VGap5knadbo%2FvWF%2BWdqD5sZ6ePPaUQJo0bTQk9EbhyuSYOIpHggRG9UAX3C44WDBJYVoxcZKg%2F8MCAS4fCcEqtqFft%2BMOcFgVXBsDJ1tEpmFZEN%2ByBdbI3qiLMLSYffuY2FiEO5%2BNIoDqSQxr%2Fa32cEJvyf%2BaTn34e156rn8VD%2FK6KBuh8kW0N25WPW%2BDK%2BOOxaYUhTZNu36usdJ13LDTMb1zUGdxEZwQSccnA2tnSf0QY5zvdW9TSvpX3Zbo4Yih2Ae6%2F1%2BXUv4l%2FvDxYybFBkb7Vp6vwMax%2BSZWXTvu6TE%2BxnzUwE9qk10D2JJDjtP1ylrHdSTV62naxW7iCU4FbcpMyZGx1afUYw8rUNZiNm736%2B8QmJGY9olrVmWTY86bYBc0nDq9zwkkgqACMFWbP8xszMjbt6Jxt3xE83jVIipqAPtlEGl32TDr8iDO6ztMIO7%2FcMGOp4BQ3aSVDdEojWAKOjfqTHjBGGoG%2FdY3qk2Tf9ltcA7p4e4c3bPuCrZjRbTgphYDLrfpT2oLxC5PxMXrVP27DafC6htlUSLz%2BDox7pM0N8dLldO3LF6%2BWb2lLcYe4QFbq74jiRazQQ2TcKBxcOYs8dHVgHy27%2FEgZdtMXPjRZKNTd761i3o9Ut5SbVYkK8c00OSO3CML83bHo5eeoY6I8w%3D
Extracting game archive to app-30ff441b-50a5-4571-9f38-be62ea2fb9a0…
Launching Cordova build…
Checking Java JDK and Android SDK versions
ANDROID_HOME=/opt/sdk (recommended setting)
ANDROID_SDK_ROOT=/opt/sdk (DEPRECATED)
Using Android SDK: /opt/sdk
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details

Task :wrapper

BUILD SUCCESSFUL in 13s
1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details

Task :app:buildKotlinToolingMetadata
Task :app:checkKotlinGradlePluginConfigurationErrors
Task :app:preBuild UP-TO-DATE
Task :app:preReleaseBuild UP-TO-DATE
Task :app:generateReleaseBuildConfig
Task :CordovaLib:preBuild UP-TO-DATE
Task :CordovaLib:preReleaseBuild UP-TO-DATE
Task :app:generateReleaseResValues
Task :CordovaLib:generateReleaseResValues
Task :CordovaLib:generateReleaseResources
Task :CordovaLib:writeReleaseAarMetadata
Task :CordovaLib:packageReleaseResources
Task :app:checkReleaseAarMetadata
Task :app:mapReleaseSourceSetPaths
Task :app:generateReleaseResources
Task :app:createReleaseCompatibleScreenManifests
Task :app:extractDeepLinksRelease
Task :CordovaLib:extractDeepLinksRelease
Task :CordovaLib:processReleaseManifest
Task :app:processReleaseMainManifest
Task :app:processReleaseManifest
Task :app:processReleaseManifestForPackage
Task :CordovaLib:parseReleaseLocalResources
Task :CordovaLib:generateReleaseRFile
Task :CordovaLib:javaPreCompileRelease
Task :app:mergeReleaseResources

Task :CordovaLib:compileReleaseJavaWithJavac

Task :app:packageReleaseResources
Task :CordovaLib:compileReleaseLibraryResources
Task :app:parseReleaseLocalResources
Task :CordovaLib:bundleLibCompileToJarRelease
Task :app:javaPreCompileRelease
Task :app:extractProguardFiles
Task :CordovaLib:bundleLibRuntimeToJarRelease
Task :CordovaLib:processReleaseJavaRes
Task :CordovaLib:createFullJarRelease
Task :CordovaLib:extractProguardFiles
Task :app:processReleaseResources
Task :CordovaLib:generateReleaseLintModel
Task :app:compileReleaseKotlin FAILED

[Incubating] Problems report is available at: file:///worker/app-30ff441b-50a5-4571-9f38-be62ea2fb9a0/platforms/android/build/reports/problems/problems-report.html

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use ‘–warning-mode all’ to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to Command-Line Interface Reference in the Gradle documentation.
36 actionable tasks: 36 executed

Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:compileReleaseKotlin’.

Inconsistent JVM-target compatibility detected for tasks ‘compileReleaseJavaWithJavac’ (1.8) and ‘compileReleaseKotlin’ (11).

Consider using JVM Toolchain: Configure a Gradle project | Kotlin Documentation
Learn more about JVM-target validation: Configure a Gradle project | Kotlin Documentation

  • 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 37s
Command failed with exit code 1: /worker/app-30ff441b-50a5-4571-9f38-be62ea2fb9a0/platforms/android/tools/gradlew cdvBuildRelease

Missing required build options - aborting.
Build errored. Error is: Error: Cordova build failed - aborting.
Uploading error logs…

My other games work fine though.

Thanks

1 Like