Hi I'm trying to build an app but I'm struck here ...
# community-support
y
Hi I'm trying to build an app but I'm struck here can some please help [info] [gradle-server] Server started, listening on 53454 [info] Gradle client connected to server [info] Java Home: E:\jdk-22 [info] JVM Args: --add-opens=java.base/java.util=ALL-UNNAMED,--add-opens=java.base/java.lang=ALL-UNNAMED,--add-opens=java.base/java.lang.invoke=ALL-UNNAMED,--add-opens=java.prefs/java.util.prefs=ALL-UNNAMED,--add-opens=java.base/java.nio.charset=ALL-UNNAMED,--add-opens=java.base/java.net=ALL-UNNAMED,--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED,-Xmx4G,-Dfile.encoding=UTF-8,-Duser.country=IN,-Duser.language=en,-Duser.variant [info] Gradle User Home: C:\Users\yesh\.gradle [info] Gradle Version: 7.6.3 [error] FAILURE: Build failed with an exception. * What went wrong: Could not open cp_init generic class cache for initialization script 'C:\Users\yesh\AppData\Local\Temp\44d02468973653f38be97a5ab572572365d566eb727299a470f89b3cec973a6c.gradle' (C:\Users\yesh\.gradle\caches\7.6.3\scripts\7qtk5j2favq18xcp2209juoro).
BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 66
* 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 CONFIGURE FAILED in 15s [error] [gradle-server] The supplied build action failed with an exception. [error] Error getting build for c\Users\yesh\Desktop\mob app\android The supplied build action failed with an exception. [info] Java Home: E:\jdk-22 [info] JVM Args: --add-opens=java.base/java.util=ALL-UNNAMED,--add-opens=java.base/java.lang=ALL-UNNAMED,--add-opens=java.base/java.lang.invoke=ALL-UNNAMED,--add-opens=java.prefs/java.util.prefs=ALL-UNNAMED,--add-opens=java.base/java.nio.charset=ALL-UNNAMED,--add-opens=java.base/java.net=ALL-UNNAMED,--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED,-Xmx4G,-Dfile.encoding=UTF-8,-Duser.country=IN,-Duser.language=en,-Duser.variant [info] Gradle User Home: C:\Users\yesh\.gradle [info] Gradle Version: 7.6.3 [error] FAILURE: Build failed with an exception. * What went wrong: Could not open cp_init generic class cache for initialization script 'C:\Users\yesh\AppData\Local\Temp\44d02468973653f38be97a5ab572572365d566eb727299a470f89b3cec973a6c.gradle' (C:\Users\yesh\.gradle\caches\7.6.3\scripts\7qtk5j2favq18xcp2209juoro).
BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 66
* 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 CONFIGURE FAILED in 135ms [error] [gradle-server] The supplied build action failed with an exception. [error] Error getting build for c\Users\yesh\Desktop\mob app\android The supplied build action failed with an exception. [info] Found 0 tasks [info] Build file opened: c:\Users\yesh\Desktop\mob_app\android\app\build.gradle [info] Build file changed: c:\Users\yesh\Desktop\mob_app\android\app\build.gradle [info] Java Home: E:\jdk-22 [info] JVM Args: --add-opens=java.base/java.util=ALL-UNNAMED,--add-opens=java.base/java.lang=ALL-UNNAMED,--add-opens=java.base/java.lang.invoke=ALL-UNNAMED,--add-opens=java.prefs/java.util.prefs=ALL-UNNAMED,--add-opens=java.base/java.nio.charset=ALL-UNNAMED,--add-opens=java.base/java.net=ALL-UNNAMED,--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED,-Xmx4G,-Dfile.encoding=UTF-8,-Duser.country=IN,-Duser.language=en,-Duser.variant [info] Gradle User Home: C:\Users\yesh\.gradle [info] Gradle Version: 7.6.3 [error] FAILURE: Build failed with an exception. * What went wrong: Could not open cp_init generic class cache for initialization script 'C:\Users\yesh\AppData\Local\Temp\44d02468973653f38be97a5ab572572365d566eb727299a470f89b3cec973a6c.gradle' (C:\Users\yesh\.gradle\caches\7.6.3\scripts\7qtk5j2favq18xcp2209juoro).
BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 66
* 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 CONFIGURE FAILED in 75ms [error] [gradle-server] The supplied build action failed with an exception. [error] Error getting build for c\Users\yesh\Desktop\mob app\android The supplied build action failed with an exception. [info] Found 0 tasks [info] Build file changed: c:\Users\yesh\Desktop\mob_app\android\app\build.gradle [info] Java Home: E:\jdk-22 [info] JVM Args: --add-opens=java.base/java.util=ALL-UNNAMED,--add-opens=java.base/java.lang=ALL-UNNAMED,--add-opens=java.base/java.lang.invoke=ALL-UNNAMED,--add-opens=java.prefs/java.util.prefs=ALL-UNNAMED,--add-opens=java.base/java.nio.charset=ALL-UNNAMED,--add-opens=java.base/java.net=ALL-UNNAMED,--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED,-Xmx4G,-Dfile.encoding=UTF-8,-Duser.country=IN,-Duser.language=en,-Duser.variant [info] Gradle User Home: C:\Users\yesh\.gradle [info] Gradle Version: 7.6.3 [error] FAILURE: Build failed with an exception. * What went wrong: Could not open cp_init generic class cache for initialization script 'C:\Users\yesh\AppData\Local\Temp\44d02468973653f38be97a5ab572572365d566eb727299a470f89b3cec973a6c.gradle' (C:\Users\yesh\.gradle\caches\7.6.3\scripts\7qtk5j2favq18xcp2209juoro).
BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 66
* 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 CONFIGURE FAILED in 78ms [error] [gradle-server] The supplied build action failed with an exception. [error] Error getting build for c\Users\yesh\Desktop\mob app\android The supplied build action failed with an exception. [info] Found 0 tasks [info] Build file opened: c:\Users\yesh\Desktop\mob_app\android\build.gradle [info] Build file changed: c:\Users\yesh\Desktop\mob_app\android\build.gradle [info] Java Home: E:\jdk-22 [info] JVM Args: --add-opens=java.base/java.util=ALL-UNNAMED,--add-opens=java.base/java.lang=ALL-UNNAMED,--add-opens=java.base/java.lang.invoke=ALL-UNNAMED,--add-opens=java.prefs/java.util.prefs=ALL-UNNAMED,--add-opens=java.base/java.nio.charset=ALL-UNNAMED,--add-opens=java.base/java.net=ALL-UNNAMED,--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED,-Xmx4G,-Dfile.encoding=UTF-8,-Duser.country=IN,-Duser.language=en,-Duser.variant [info] Gradle User Home: C:\Users\yesh\.gradle [info] Gradle Version: 7.6.3 [error] FAILURE: Build failed with an exception. * What went wrong: Could not open cp_init generic class cache for initialization script 'C:\Users\yesh\AppData\Local\Temp\44d02468973653f38be97a5ab572572365d566eb727299a470f89b3cec973a6c.gradle' (C:\Users\yesh\.gradle\caches\7.6.3\scripts\7qtk5j2favq18xcp2209juoro).
BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 66
* 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 CONFIGURE FAILED in 78ms [error] Error getting build for c\Users\yesh\Desktop\mob app\android The supplied build action failed with an exception. [info] Found 0 tasks [error] [gradle-server] The supplied build action failed with an exception. [info] Build file changed: c:\Users\yesh\Desktop\mob_app\android\app\build.gradle [info] Java Home: E:\jdk-22 [info] JVM Args: --add-opens=java.base/java.util=ALL-UNNAMED,--add-opens=java.base/java.lang=ALL-UNNAMED,--add-opens=java.base/java.lang.invoke=ALL-UNNAMED,--add-opens=java.prefs/java.util.prefs=ALL-UNNAMED,--add-opens=java.base/java.nio.charset=ALL-UNNAMED,--add-opens=java.base/java.net=ALL-UNNAMED,--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED,-Xmx4G,-Dfile.encoding=UTF-8,-Duser.country=IN,-Duser.language=en,-Duser.variant [info] Gradle User Home: C:\Users\yesh\.gradle [info] Gradle Version: 7.6.3 [error] FAILURE: Build failed with an exception. * What went wrong: Could not open cp_init generic class cache for initialization script 'C:\Users\yesh\AppData\Local\Temp\44d02468973653f38be97a5ab572572365d566eb727299a470f89b3cec973a6c.gradle' (C:\Users\yesh\.gradle\caches\7.6.3\scripts\7qtk5j2favq18xcp2209juoro).
BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 66
* 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 CONFIGURE FAILED in 70ms [error] Error getting build for c\Users\yesh\Desktop\mob app\android The supplied build action failed with an exception. [info] Found 0 tasks [error] [gradle-server] The supplied build action failed with an exception.
v
Please don't post such walls of text to the channel, that makes it very hard viewable on mobile phones for example. Instead post a short message and the wall of text into the thread. Regarding the problem, you try to run Gradle 7.6.3 using Java 22. This is not supported: https://docs.gradle.org/current/userguide/compatibility.html
y
Thankyou
Had any idea about this please? The supplied phased action failed with an exception. Could not create task ':generateLockfiles'. Process 'command 'C:\Users\yesh\Desktop\mob_app\android/gradlew.bat'' finished with non-zero exit value 1