Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
和 Unsupported Java. Your build is currently configured to use Java 17.0.6 and Gradle 6.7.1.
Possible solution: - Upgrade Gradle wrapper to 7.2 version and re-import the project
6. 版本降低后必要同步gradle设置 File->Sync Project with Gradle Files(或者直接在工具栏同步)
7.此时又报出新的错误:
Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin 'com.android.internal.application'.
和 Caused by: org.gradle.api.tasks.StopExecutionException: Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a different directory. See http://b.android.com/95744 for details. This warning can be disabled by adding the line 'android.overridePathCheck=true' to gradle.properties file in the project directory.