Я обновил свой проект до gradle 8.0, androidGradlePluginVersion = '8.1.0'
он попросил обновить версию Java
Код: Выделить всё
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
Мы используем Appcenter ms для распространения сборок, но он не компилирует сборки с этим обновлением
Получение этой ошибки из Appcenter
Код: Выделить всё
Failed to apply plugin 'com.android.internal.library'.
> Android Gradle plugin requires Java 17 to run. You are currently using Java 11.
Your current JDK is located in /Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.19-7/x64/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`.

Подробнее здесь: https://stackoverflow.com/questions/768 ... es-java-17
Мобильная версия