Android Studio版本
Android Studio Chipmunk | 2021.2.1
build报错
org.gradle.api.tasks.TaskExecutionException: Execution failed for task
terminal执行./gradlew assembleDebug --info报错
The input changes require a full rebuild for incremental task
Full recompilation is required because no incremental change information is available. This is usually caused by clean builds or changing compiler arguments.
Compiling with JDK Java compiler API.
编译器 (1.8.0_65) 中出现异常错误。如果在 Java Bug Database (http://bugreport.java.com/bugreport/) 中没有找到该错误, 请在该数据库中建立 Bug。请在报告中附上您的程序和以下诊断信息。谢谢。
java.lang.AssertionError: annotationType(): unrecognized Attribute name MODULE (class com.sun.tools.javac.util.UnsharedNameTable$NameImpl)
解决办法:
settings – Gradle中Gradle JDK改为jre 11的路径