Cicero
02/22/2021, 7:09 PM* What went wrong:
An exception occurred applying plugin request [id: 'com.android.application']
> Failed to apply plugin 'com.android.internal.application'.
> Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.
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`.
Yes, so I actually changed my java system version:
11:~ ch$ $JAVA_HOME/bin/java -version
java version "11.0.10" 2021-01-19 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.10+8-LTS-162)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.10+8-LTS-162, mixed mode)
11:~ ch$
aleksey.tomin
02/23/2021, 5:37 AM./gradlew assembleDebug
./gradlew --version
https://www.jetbrains.com/help/idea/switching-boot-jdk.htmlCicero
02/23/2021, 8:23 AMCicero
02/23/2021, 9:26 AM./gradlew assembleDebug
> Configure project :common
Kotlin Multiplatform Projects are an Alpha feature. See: <https://kotlinlang.org/docs/reference/evolution/components-stability.html>. To hide this message, add 'kotlin.mpp.stability.nowarn=true' to the Gradle properties.
The Kotlin source set androidAndroidTestRelease was configured but not added to any Kotlin compilation. You can add a source set to a target's compilation by connecting it with the compilation's default source set using 'dependsOn'.
See <https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#connecting-source-sets>
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See <https://docs.gradle.org/6.8.2/userguide/command_line_interface.html#sec:command_line_warnings>
BUILD SUCCESSFUL in 13s
55 actionable tasks: 10 executed, 45 up-to-date
Cicero
02/23/2021, 9:27 AM./gradlew --version
------------------------------------------------------------
Gradle 6.8.2
------------------------------------------------------------
Build time: 2021-02-05 12:53:00 UTC
Revision: b9bd4a5c6026ac52f690eaf2829ee26563cad426
Kotlin: 1.4.20
Groovy: 2.5.12
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 11.0.10 (Oracle Corporation 11.0.10+8-LTS-162)
OS: Mac OS X 10.16 x86_64
aleksey.tomin
02/23/2021, 9:30 AMJVM: 11.0.10 (Oracle Corporation 11.0.10+8-LTS-162)Gradle is using 11 jvm and can compile the code. What version is IDEA using?
Cicero
02/23/2021, 9:40 AMCicero
02/23/2021, 9:44 AMCicero
02/23/2021, 9:52 AM* Where:
Build file '/Users/ch/kmm-basics/android/build.gradle.kts' line: 1
* What went wrong:
An exception occurred applying plugin request [id: 'com.android.application']
> Failed to apply plugin 'com.android.internal.application'.
> Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.
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`.
And this output is when Xcode runs:
cd "$SRCROOT/.."
$JAVA_HOME/bin/java -version
./gradlew :common:packForXCode -PXCODE_CONFIGURATION=${CONFIGURATION}
Which I didn’t touched yetCicero
02/23/2021, 9:55 AM/Users/ch/Library/Developer/Xcode/DerivedData/ios-ggswitxqatyvowbawnqkebqhtgjs/Build/Intermediates.noindex/ios.build/Debug-iphonesimulator/ios.build/Script-7555FFB5242A651A00829871.sh: line 6: /bin/java: No such file or directory
aleksey.tomin
02/23/2021, 10:03 AMCicero
02/23/2021, 10:16 AMCicero
02/23/2021, 10:17 AMCicero
02/23/2021, 10:37 AMCicero
02/23/2021, 10:37 AMCicero
02/23/2021, 10:37 AMCicero
02/23/2021, 10:39 AMCicero
02/23/2021, 10:41 AMCicero
02/23/2021, 10:42 AMCicero
02/23/2021, 10:42 AMCicero
02/23/2021, 10:45 AMCicero
02/23/2021, 10:46 AMCicero
02/23/2021, 4:50 PMCicero
02/23/2021, 4:51 PM