-
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
skip checkup passes, but building projects fails with Gradle run error #77
Comments
The only project I can build and run is: |
From the report navigator:
|
I notice you are running skip 0.7.38. Can you do From the error you post, this does look like an OpenJDK 17/21 issue. The relevant part of the build error is:
Can you post the output of the command
If openjdk@17 is not listed there, can you install it with As a last-ditch effort, you can always override the FTR, once Gradle 8.5 stabilizes, we intend to have Skip use OpenJDK 21, which will hopefully squash these kinds of problems once and for all. |
@marcprux thanks so much for the help. As you suggested, I first ran brew upgrade skip. Output:
Next I ran skip init --open-xcode --test --appid=com.example.App example-app ExampleApp
In xcode i clicked run:
Continuing with your advice,
openjdk@17 is listed, but i'll reinstall with
No change. Still:
I’m not quite sure how and where to set JAVA_HOME exactly, but I will try to find out and report back |
I don’t know if this was right, but in build phases -> run skip gradle, I inserted the first line:
I did clean build folder a couple of times, but no change. I am not confident I correctly set JAVA_HOME though |
I ran into the same issue. you can check if the requested Gradle toolchain is installed by running In my case I had no toolchain (SDK) for Java17 so I installed JDK 17.0.10 and it worked. |
I was having the same erros and this solution worked for me. Thank you! |
Discussed in #74
Originally posted by Wheels00 December 28, 2023
skip checkup --double-check passes just fine (screenshot below)
I have downloaded the SkipWeather example, and I am trying to run it in both simulators. Build fails with this error:
Any suggestions?
[Update: Same error on new projects built with skip init]
The text was updated successfully, but these errors were encountered: