Я обновил Java до версии 21, но проблема все еще сохраняется! < /P>
Как Могу ли я это исправить?
Код: Выделить всё
Could not run phased build action using connection to Gradle distribution `'https://services.gradle.org/distributions/gradle-7.5-all.zip'`.
`org.gradle.api.ProjectConfigurationException`: A problem occurred configuring root project `'android'`.
A problem occurred configuring root project `'android'`.
A problem occurred evaluating root project `'android'`.
A problem occurred configuring project `':app'`.
Build file `'/android/app/build.gradle' line: 2`
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.
Your current JDK is located in `C:\Program Files\Java\jdk1.8.0_161\jre`
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/794 ... how-to-fix
Мобильная версия