-
Notifications
You must be signed in to change notification settings - Fork 46
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
Cannot find a Java installation on your machine matching this tasks requirements: {languageVersion=17... #161
Comments
I'm afraid that didn't seem to do the trick. I made the addition (in the same spot as your screenshot) and am still getting the following:
|
Can you also try running the Xcode menu: |
Hmm... is this a project you'd be able to just zip and send over to us? Might be faster than going back and forth. If not, I wonder if a fresh "skip init --open-xcode --appid=com.xyz.HelloSkip hello-skip HelloSkip" project compiles and runs from Xcode? |
Interestingly, a new Skip project created from that exact command fails to build with a different error now:
A
I'm not getting this issue with my project, but the same one as described before. I have created a very minimized version of that project (stripping out all of my own code) that still exhibits this behavior on my machine (Xcode 15.4, macOS 14.5, MBP M3 Max) even with the very latest package versions. I'm sending it your way now via email. |
The new error you're seeing just means that you need to un-install any old version of that app from the Android emulator. It'll work after that. |
On the topic of the existing project: first, thanks or sending it. Unfortunately it works for me right out of the box. But I do have a suggestion. Please try commenting out the "jvmToolchain" line in the "kotlin" section of the build.gradle.kts file:
|
I commented out that line and re-compiled -- it worked, both in the minimized project I sent you and my full project. 🎉 Thank you so much for your help. Is this something you'll need to revisit on your end, or is it okay to leave this commented out? |
Hurray! It's safe to keep commented out. You now have our recommended configuration. We haven't put up more docs and tooling around it yet because we're also preparing to move to the Kotlin 2 compiler, which is going to require additional changes. So we're trying to do all the tooling and docs at once. |
不确定是否有关联,我在尝试修正 Android Studio 给出的相同报错时,进行了以下步骤: brew install openjdk@17
for jdk in $(brew list | grep openjdk); do
# 将 Homebrew 安装的 JDK 链接到 `/Library/Java/JavaVirtualMachines` 目录下
sudo ln -sfn $HOMEBREW_PREFIX/opt/$jdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/$jdk.jdk
done 最后执行 I'm not sure if it's related. When I tried to correct the same error given by Android Studio, I took the following steps: brew install openjdk@17
for jdk in $(brew list | grep openjdk); do
# Link the JDK installed by Homebrew to the `/Library/Java/JavaVirtualMachines` directory
sudo ln -sfn $HOMEBREW_PREFIX/opt/$jdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/$jdk.jdk
done Finally, execute After that, the error of Android Studio disappeared. |
the jvm method applied on the version of libraries isn't working for me... |
I'm not entirely sure what happened, but I recently updated to the latest Skip version and started getting the following error when trying to compile my project in Xcode.
It's not clear to me why it's referencing
languageVersion=17
. I have the following installed:Skip checkup seems to work properly:
I tried initializing a new Skip app project and compiled it fine with Xcode. I'm not sure what happened to my project, but it seems odd that it would fail to use the proper Java version.
The text was updated successfully, but these errors were encountered: