You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever i run "expo run:android" via npm package.json this error occurs:
│
│ FAILURE: Build failed with an exception.
│
│ * What went wrong:
│ Execution failed for task ':pchmn-expo-material3-theme:compileDebugKotlin'.
│ > Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (17) and 'compileDebugKotlin' (19).
│
│ Consider using JVM Toolchain: https://kotl.in/gradle/jvm/toolchain
│ Learn more about JVM-target validation: https://kotl.in/gradle/jvm/target-validation
│
│ * 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 50s
│ 465 actionable tasks: 92 executed, 359 from cache, 14 up-to-date
Hello, mate.
There is a chance that Android Studio lost your JAVA_HOME
Check here Settings => Build, Execution, Deployment => Build Tools => Gradle
Take a look at Gradle JDK field and make sure it's set up correctly, in your case it should be 17 (17 should be in path also, not 19)
@RunRanger did you manage to build your app ultimately ?
As @fudzi9nine said, it seems you were trying to build your app with JDK 19 while it should be JDK 17.
You can run java --version to confirm the JDK version you use.
Whenever i run "expo run:android" via npm package.json this error occurs:
app.json (expo-build-properties):
package.json dependencies:
The text was updated successfully, but these errors were encountered: