Errors when compile Android app
Posted: Wed Mar 11, 2026 12:20 pm
My code works fine in the ide, but when I compile it for android I get in my phone a black screen and then the app closed automatically
I'm using JDK 17, defined in SpiderBasic compiler path: "C:\Program Files\Java\jdk-17\"
this log says:
[/size]
Thank you in advance
I'm using JDK 17, defined in SpiderBasic compiler path: "C:\Program Files\Java\jdk-17\"
this log says:
- ANDROID_SDK_ROOT=undefined (DEPRECATED)
- Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
Code: Select all
Compilation in progress...
You have been opted out of telemetry. To change this, run: cordova telemetry on.
Creating a new cordova project.
Creating app...
You have been opted out of telemetry. To change this, run: cordova telemetry on.
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
You have been opted out of telemetry. To change this, run: cordova telemetry on.
Installing "cordova-plugin-nativeaudio" for android
Adding cordova-plugin-nativeaudio to package.json
You have been opted out of telemetry. To change this, run: cordova telemetry on.
Checking Java JDK and Android SDK versions
ANDROID_HOME=D:\Program\SpiderBasic\Android\android\sdk (recommended setting)
ANDROID_SDK_ROOT=undefined (DEPRECATED)
Using Android SDK: D:\Program\SpiderBasic\Android\android\sdk
Picked up _JAVA_OPTIONS: -Xmx512M
> Task :wrapper
BUILD SUCCESSFUL in 1s
1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app
Picked up _JAVA_OPTIONS: -Xmx512M
> Task :app:preBuild UP-TO-DATE
> Task :app:preDebugBuild UP-TO-DATE
> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
> Task :app:generateDebugBuildConfig
> Task :CordovaLib:preBuild UP-TO-DATE
> Task :CordovaLib:preDebugBuild UP-TO-DATE
> Task :app:javaPreCompileDebug
> Task :CordovaLib:writeDebugAarMetadata
> Task :app:generateDebugResValues
> Task :CordovaLib:generateDebugResValues
> Task :app:checkDebugAarMetadata
> Task :CordovaLib:generateDebugResources
> Task :CordovaLib:packageDebugResources
> Task :app:mapDebugSourceSetPaths
> Task :app:generateDebugResources
> Task :app:packageDebugResources
> Task :app:createDebugCompatibleScreenManifests
> Task :app:parseDebugLocalResources
> Task :app:extractDeepLinksDebug
> Task :CordovaLib:extractDeepLinksDebug
> Task :CordovaLib:compileDebugLibraryResources
> Task :CordovaLib:processDebugManifest
> Task :CordovaLib:parseDebugLocalResources
> Task :app:processDebugMainManifest
> Task :app:processDebugManifest
> Task :app:mergeDebugResources
> Task :CordovaLib:javaPreCompileDebug
> Task :CordovaLib:generateDebugRFile
> Task :app:mergeDebugShaders
> Task :CordovaLib:compileDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
> Task :app:processDebugManifestForPackage
> Task :app:compileDebugShaders NO-SOURCE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :CordovaLib:mergeDebugShaders
> Task :CordovaLib:compileDebugShaders NO-SOURCE
> Task :CordovaLib:generateDebugAssets UP-TO-DATE
> Task :CordovaLib:packageDebugAssets
> Task :CordovaLib:bundleLibCompileToJarDebug
> Task :app:mergeDebugAssets
> Task :app:processDebugJavaRes NO-SOURCE
> Task :CordovaLib:processDebugJavaRes
> Task :app:checkDebugDuplicateClasses
> Task :app:compressDebugAssets
> Task :app:desugarDebugFileDependencies
> Task :app:processDebugResources
> Task :app:mergeDebugJavaResource
> Task :app:compileDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
> Task :app:dexBuilderDebug
> Task :app:mergeDebugJniLibFolders
> Task :CordovaLib:mergeDebugJniLibFolders
> Task :CordovaLib:mergeDebugNativeLibs NO-SOURCE
> Task :CordovaLib:copyDebugJniLibsProjectOnly
> Task :app:validateSigningDebug
> Task :app:mergeDebugNativeLibs NO-SOURCE
> Task :app:stripDebugDebugSymbols NO-SOURCE
> Task :app:mergeProjectDexDebug
> Task :app:writeDebugAppMetadata
> Task :app:writeDebugSigningConfigVersions
> Task :CordovaLib:bundleLibRuntimeToDirDebug
> Task :app:mergeExtDexDebug
> Task :app:mergeLibDexDebug
> Task :app:packageDebug
> Task :app:createDebugApkListingFileRedirect
> Task :app:assembleDebug
> Task :app:cdvBuildDebug
[Incubating] Problems report is available at: file:///C:/Users/ziki/AppData/Local/Temp/SpiderBasic523932906/app/platforms/android/build/reports/problems/problems-report.html
[b][color=#FF0000]Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.[/color][/b]
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/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD SUCCESSFUL in 7s
50 actionable tasks: 50 executed
Built the following apk(s):Thank you in advance