Page 1 of 1

Nouveau problème lors de la création d'un APK

Posted: Mon Jan 05, 2026 8:20 pm
by Trebor55
Hello everyone

Compilation does not complete.

Here is the log created during compilation:
Compilation in progress...
Creating a new cordova project.
Creating app...
Using cordova-fetch for cordova-android@14.0.1
Adding android project...
Creating Cordova project for the Android platform:
Subproject Path: CordovaLib
Subproject Path: app
Android project created with cordova-android@14.0.1
Installing "cordova-plugin-file" for android
Subproject Path: CordovaLib
Subproject Path: app
The Android Persistent storage location now defaults to "Internal". Please check this plugin's README to see if your application needs any changes in its config.xml.
If this is a new application no changes are required.
If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:
"<preference name="AndroidPersistentFileLocation" value="Compatibility" />"
to config.xml in order for the application to find previously stored files.
Adding cordova-plugin-file to package.json
Installing "cordova-plugin-device" for android
Adding cordova-plugin-device to package.json
Installing "cordova-plugin-battery-status" for android
Adding cordova-plugin-battery-status to package.json
Installing "cordova-plugin-vibration" for android
Adding cordova-plugin-vibration to package.json
Installing "cordova-plugin-brightness" for android
Adding cordova-plugin-brightness to package.json
Installing "cordova-plugin-nativeaudio" for android
Adding cordova-plugin-nativeaudio to package.json
Checking Java JDK and Android SDK versions
ANDROID_HOME=D:\Program Files (x86)\SpiderBasic\Android\android\sdk (recommended setting)
ANDROID_SDK_ROOT=undefined (DEPRECATED)
Using Android SDK: D:\Program Files (x86)\SpiderBasic\Android\android\sdk
Picked up _JAVA_OPTIONS: -Xmx512M
> Task :wrapper
[Incubating] Problems report is available at: file:///C:/Users/trebo/AppData/Local/Temp/SpiderBasic140896765/app/platforms/android/tools/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 https://docs.gradle.org/8.13/userguide/ ... e_warnings in the Gradle documentation.
BUILD SUCCESSFUL in 6s
1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app
Picked up _JAVA_OPTIONS: -Xmx512M
[Incubating] Problems report is available at: file:///C:/Users/trebo/AppData/Local/Temp/SpiderBasic140896765/app/platforms/android/build/reports/problems/problems-report.html
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\trebo\AppData\Local\Temp\SpiderBasic140896765\app\platforms\android\app\build.gradle' line: 20
* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin 'com.android.internal.application'.
> Android Gradle plugin requires Java 17 to run. You are currently using Java 11.
Your current JDK is located in C:\jdk-11.0.2
You can try some of the following options:
- changing the IDE settings.
- changing the JAVA_HOME environment variable.
- changing `org.gradle.java.home` in `gradle.properties`.
* 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.
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 https://docs.gradle.org/8.13/userguide/ ... e_warnings in the Gradle documentation.
BUILD FAILED in 2m 17s
Command failed with exit code 1: C:\Users\trebo\AppData\Local\Temp\SpiderBasic140896765\app\platforms\android\tools\gradlew.bat cdvBuildDebug
If anyone can help, that would be great.

Thanks in advance

Re: Nouveau problème lors de la création d'un APK

Posted: Mon Jan 05, 2026 9:36 pm
by plouf
you try to compile somthing simple as

Code: Select all

  MessageRequester("Just a short information text.")

does it work?

seems like fails to work with a specific function / addon you use

Re: Nouveau problème lors de la création d'un APK

Posted: Tue Jan 06, 2026 7:26 am
by hoerbie
I don‘t see/know what SB version you are using, but I think the solution is at the bottom of your error log, that you are using the wrong Java SDK version. For the build the gradle tool is used and it wants a 17.x SDK but finds an 11.x