Bonjour à tous
La compilation ne se termine pas.
Voici le journal créé lors de la 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
Si quelqu'un peut de dépanner, ça serait sympa
Merci d'avance
Nouveau problème lors de la création d'un APK
Re: Nouveau problème lors de la création d'un APK
Bonjour,
Au milieu du journal il y a :
Ça dit que vous utilisez Java 11 mais qu'il faut Java 17.
Au milieu du journal il y a :
C'est donc peut-être la version de Java qui bloque la compilation.> Android Gradle plugin requires Java 17 to run. You are currently using Java 11.
Ça dit que vous utilisez Java 11 mais qu'il faut Java 17.
Re: Nouveau problème lors de la création d'un APK
Bounjour tous,
Merci Bruce33, ça fonctionne impec
Merci Bruce33, ça fonctionne impec