Comments (4)
Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (21) and 'compileDebugKotlin' (17).
I think that might be a red herring. Since skip checkup
passed for you, your system should have the correct JVM installed.
The other error message in the log might be the more salient one:
No connected Android devices or emulators were reported by 'adb devices'. To launch the Skip app, start an emulator from the Android Studio Device Manager or use the ~/Library/Android/sdk/emulator/emulator command
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?
from skip.
Tried by keeping android emulator open. it throws same error. tried setting path for java home to 17, but not sure from where its picking up 21.
from skip.
So "skip checkup" passes? Do you have JAVA_HOME set in your environment? What does the following Terminal command output?
echo $JAVA_HOME
from skip.
Can you try editing the Android/app/build.gradle.kts
file in Xcode and adding the following clause to the android { }
block:
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.
from skip.
Related Issues (20)
- Java version: error executing java HOT 5
- Command PhaseScriptExecution failed with a nonzero exit code HOT 21
- Request: RealmSwift demo HOT 3
- WebSocket APIs for Skip HOT 2
- Small BUG: 'skip checkup' and 'skip doctor' cant find JetBrains installed Android Studio HOT 3
- Requires license in free mode HOT 2
- skip checkup passes, but I'm unable to compile HelloSkip HOT 8
- ERROR: JAVA_HOME is set to an invalid directory: /opt/homebrew/opt/java HOT 1
- Unable to update iOS Deployment Target (minimum iOS version supported) HOT 2
- Type mismatch when working with ForEach with generics HOT 4
- Skip created a corrupted emulator in ADB HOT 2
- Locale.current.currency?.identifier: Skip is unable to determine the owning type... HOT 3
- Extensions on Array that are not referenced in the compile unit may fail to `import skip.lib.Array`, thus resulting in the wrong Array type being used HOT 2
- Fail to launch the app and "The gradle command failed" HOT 5
- Skip license key expired in free mode HOT 1
- Transpilation problem with lazy variables inside a function HOT 1
- licence key not found error HOT 2
- Error Setting Up for the frist time HOT 14
- Skip plugin should report error when the target has no transitive skip dependencies HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skip.