trancaothien
06/23/2024, 5:24 PMREPO_ROOT="$PODS_TARGET_SRCROOT"
"$REPO_ROOT/../gradlew" -p "$REPO_ROOT" $KOTLIN_PROJECT_PATH:syncFramework -Pkotlin.native.cocoapods.platform=$PLATFORM_NAME -Pkotlin.native.cocoapods.archs="$ARCHS" -Pkotlin.native.cocoapods.configuration="$CONFIGURATION"
Calculating task graph as no cached configuration is available for tasks: :shared:syncFramework
Type-safe project accessors is an incubating feature.
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/trancaothien/Development/KMP/MySchool/androidApp/build.gradle.kts' line: 1
* What went wrong:
An exception occurred applying plugin request [id: 'com.android.application', version: '8.5.0']
> Failed to apply plugin 'com.android.internal.application'.
> Android Gradle plugin requires Java 17 to run. You are currently using Java 16.
Your current JDK is located in /Users/trancaothien/Library/Java/JavaVirtualMachines/corretto-16.0.2/Contents/Home
You can try some of the following options:
- changing the IDE settings.
- changing the JAVA_HOME environment variable.
- changing `org.gradle.java.home` in `gradle.properties`.
I run iosApp with xcode 15.3 but, I don't know why xcode checked gradle and java home?trancaothien
06/23/2024, 5:26 PMhfhbd
06/23/2024, 5:51 PM