-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
> Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (21) and 'compileDebugKotlin' (17). #150
Comments
I think that might be a red herring. Since The other error message in the log might be the more salient one:
Have you launched an Android emulator, as per https://skip.tools/docs/app-development/#building-and-running ? If not, can you do so and then try again, and let us know if you still get errors? |
So "skip checkup" passes? Do you have JAVA_HOME set in your environment? What does the following Terminal command output?
|
Can you try editing the kotlinOptions {
jvmTarget = libs.versions.jvm.get().toString()
} So, for example, it looks like this: android {
namespace = group as String
compileSdk = libs.versions.android.sdk.compile.get().toInt()
compileOptions {
sourceCompatibility = JavaVersion.toVersion(libs.versions.jvm.get())
targetCompatibility = JavaVersion.toVersion(libs.versions.jvm.get())
}
kotlinOptions {
jvmTarget = libs.versions.jvm.get().toString()
}
and then try running the project again? That may be all it it needs to force it to use the correct JVM target. |
Hello Team,
i am trying hello world app with Skip. i m stuck on the build script for android it throws this error.
Attached is Error I get and build script file for android. i have android studio installed on my Mac M1 Pro machine. there is no modification done from my side. This is just a Hello World app. Check goes through fine. i don't get any error on that part.
The text was updated successfully, but these errors were encountered: