Код: Выделить всё
A build operation failed.
Could not create task ':app:compileDebugAndroidTestJavaWithJavac'.
Could not create task ':app:compileDebugAndroidTestJavaWithJavac'.
Failed to calculate the value of task ':app:compileDebugAndroidTestJavaWithJavac' property 'javaCompiler'.
Cannot find a Java installation on your machine matching this tasks requirements: {languageVersion=17, vendor=ADOPTIUM, implementation=vendor-specific} for MAC_OS on aarch64.
No locally installed toolchains match and toolchain download repositories have not been configured.
Код: Выделить всё
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
vendor = JvmVendorSpec.ADOPTIUM // Or use JvmVendorSpec.TEMURIN
}
}
версия openjdk «17.0.13» 15 октября 2024 г.
Подробнее здесь: https://stackoverflow.com/questions/791 ... eral-tasks
Мобильная версия