skiptools / skip

Skip transpiler for creating SwiftUI apps for iOS and Android

Home Page:https://skip.tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gradle command failed on HelloSkip

glussian-luna opened this issue · comments

Couldn't succeed to compile. It stops in the script to build gradle

"The gradle command failed."

Detail log below:

GRADLE> Could not determine the dependencies of task ':app:packageDebug'.
GRADLE> > Could not create task ':app:compileDebugJavaWithJavac'.
GRADLE> > Failed to calculate the value of task ':app:compileDebugJavaWithJavac' property 'javaCompiler'.
GRADLE> > Cannot find a Java installation on your machine matching this tasks requirements: {languageVersion=17, vendor=any, implementation=vendor-specific} for MAC_OS on aarch64.
GRADLE> > No locally installed toolchains match and toolchain download repositories have not been configured.
GRADLE>
GRADLE> * Try:
GRADLE> > Learn more about toolchain auto-detection at https://docs.gradle.org/8.6/userguide/toolchains.html#sec:auto_detection.
GRADLE> > Learn more about toolchain repositories at https://docs.gradle.org/8.6/userguide/toolchains.html#sub:download_repositories.
GRADLE> > Run with --stacktrace option to get the stack trace.
GRADLE> > Run with --info or --debug option to get more log output.
GRADLE> > Run with --scan to get full insights.
GRADLE> > Get more help at https://help.gradle.org.

[✓] Skip version 0.8.8 (= 0.8.8)
[✓] macOS version 14.3.1 (> 13.5.0)
[✓] Swift version 5.9.2 (> 5.9.0)
[✓] Xcode version 15.2 (> 15.0.0)
[✓] Xcode tools SDKs: 5
[✓] Homebrew version 4.2.8 (> 4.1.0)
[✓] Gradle version 8.6 (> 8.3.0)
[✓] Java version 17.0.9 (> 17.0.0)
[✓] Android Debug Bridge version 1.0.41 (> 1.0.40)
[✓] Android Studio version: 2023.1
[✓] Android SDK licenses: 2
[✓] Resolve dependencies (19.71s)
[✓] Build hello-skip (10.13s)
[✓] Test Swift (6.17s)
[✓] Test Kotlin (22.96s)
[✓] Archive iOS ipa (25.96s)
[✓] Assemble HelloSkip-release.ipa (0.01s)
[✓] Verify HelloSkip-release.ipa 24 KB
[✓] Assembling Android apk (57.41s)
[✓] Verify HelloSkip-release.apk 6.2 MB
[✓] Check Swift Package (0.5s)
[✓] Skip 0.8.8 checkup (143.67s)

Sorry for the trouble. We very recently updated our toolchain to use the latest Java 21, now that Gradle supports it. That might resolve your issue on its own. Can you please run skip upgrade on the command line, then try re-creating a HelloSkip project and building the new project? Make sure to delete Xcode's DerivedData.

Thanks!

Thx. This fixes the issue