DEV Community

Leonidas Savvides
Leonidas Savvides

Posted on

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

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

1-
After the first test, "cordova build" is getting errors... Can you tell me how to debug this?
2-
jdk-21 is okay to use with CORDOVA CLI 12x???

===

Image description

Image description

 Name: Polis Cyprus
        Activity: MainActivity
        Android Target SDK: android-33
        Android Compile SDK: 33
Subproject Path: CordovaLib
Subproject Path: app
Android project created with cordova-android@12.0.1
PS C:\Users\User\PhpstormProjects\Cordova\PolisApp> cordova platform ls         
Installed platforms:
  android 12.0.1
Available platforms:
  browser
  electron
PS C:\Users\User\PhpstormProjects\Cordova\PolisApp> cordova requirements

Requirements check results for android:
Java JDK: installed 21.0.0
Android SDK: installed true
Android target: installed android-34,android-33
Gradle: installed C:\Users\User\.gradle\wrapper\dists\gradle-8.0-bin\ca5e32bp14vu59qr306oxotwh\gradle-8.0\bin\gradle.BAT
PS C:\Users\User\PhpstormProjects\Cordova\PolisApp> cordova build       
Checking Java JDK and Android SDK versions
ANDROID_HOME=C:\Users\User\AppData\Local\Android\Sdk (recommended setting)
ANDROID_SDK_ROOT=undefined (DEPRECATED)
Using Android SDK: C:\Users\User\AppData\Local\Android\Sdk

Welcome to Gradle 8.0!

For more details see https://docs.gradle.org/8.0/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

* What went wrong:
Could not open settings generic class cache for settings file 'C:\Users\User\PhpstormProjects\Cordova\PolisApp\platforms\android\settings.gradle' (C:\Users\User\.gradle\caches\8.0\scripts\btzasla2v1bdorco4bxl7tade).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 65

* 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.

See https://docs.gradle.org/8.0/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 10s
Command failed with exit code 1: C:\Users\User\.gradle\wrapper\dists\gradle-8.0-bin\ca5e32bp14vu59qr306oxotwh\gradle-8.0\bin\gradle.BAT -p C:\Users\User\PhpstormProjects\Cordova\PolisApp\platforms\android wrapper -b C:\Users\User\PhpstormProjects\Cordova\PolisApp\platforms\android\wrapper.gradle
PS C:\Users\User\PhpstormProjects\Cordova\PolisApp> 
Enter fullscreen mode Exit fullscreen mode

Top comments (0)