Running 'gradlew :app:assembleRelease' in /home/expo/workingdir/build/android
Downloading https://services.gradle.org/distributions/gradle-7.6-bin.zip
10%
20%.
30%
40%
50%
60
%.
70%
80%.
90%
100%
Welcome to Gradle 7.6!
Here are the highlights of this release:
- Added support for Java 19.
- Introduced
--rerun
flag for individual task rerun. - Improved dependency block for test suites to be strongly typed.
- Added a pluggable system for Java toolchains provisioning. For more details see https://docs.gradle.org/7.6/release-notes.html To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.6/userguide/gradle_daemon.html#sec:disabling_the_daemon. Daemon will be stopped at the end of the build > Configure project : Invalid Java installation found at '/usr/lib/jvm/openjdk-17' (Common Linux Locations). It will be re-checked in the next build. This might have performance impact if it keeps failing. Run the 'javaToolchains' task for more details. FAILURE: Build failed with an exception.
- What went wrong: A problem occurred configuring root project 'InstaCaver1'. > Could not determine the dependencies of null. > Could not resolve all dependencies for configuration ':classpath'. > The new Java toolchain feature cannot be used at the project level in combination with source and/or target compatibility
- 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 56s Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
Top comments (8)
Do you have java installed in the default directory?
Yes In the c drive i install 19 version of jdk but i cant work again and again show me error.
Wdym C drive. Are you using wsl?
You need to have java installed in
/usr/lib/jvm/openjdk-17
or simillarNo I am not use wsl , but according to say you user/link/jvm/openjdk i think this path is in the Linux system not in the window I use windows
The gradlew command you are running is looking for paths in the Linux format, are you sure you are using the correct command for windows?
i install 11 jdk in my bc drive c/programfile/java/11jdk/bin this path i set
than when i set a command own vs code like, eas build -p android This command i use it But i cant solve my problem
is it ok with this or else need to download or install the wsl on the windows ?
where?
Till now my problem is not solve ?