We Are Going To Discuss About unrecognized Attribute name MODULE (class com.sun.tools.javac.util.SharedNameTable$NameImpl). So lets Start this Java Article.
unrecognized Attribute name MODULE (class com.sun.tools.javac.util.SharedNameTable$NameImpl)
- unrecognized Attribute name MODULE (class com.sun.tools.javac.util.SharedNameTable$NameImpl)
Path to update your gradle jdk in AS Arctic Fox:
Settings > Build, Execution, Deployment > Build Tools > Gradle > Gradle JDK
Select 11 and build should be successful. - MODULE (class com.sun.tools.javac.util.SharedNameTable$NameImpl)
Path to update your gradle jdk in AS Arctic Fox:
Settings > Build, Execution, Deployment > Build Tools > Gradle > Gradle JDK
Select 11 and build should be successful.
Solution 1
Path to update your gradle jdk in AS Arctic Fox:
Settings > Build, Execution, Deployment > Build Tools > Gradle > Gradle JDK
Select 11 and build should be successful.
Original Author Of This Content
Solution 2
I was hitting this issue in a build container, but not when building through android studio.
The difference in the two environments was the JDK version. Android studio was using JDK 11, while the build container was using openjdk-8.
The fix was updating the container’s JDK version to openjdk-11.
Original Author Of This Content
Solution 3
Android 12 seems to need JDK 11 +.
In Android Studio you can update the JDK from 8 to 11.
If you use any DevOps tools, you will also need to update the JDK to 11 otherwise it will not compile the debug build apk.
Original Author Of This Content
Solution 4
I faced same issue and I had to update Android studio. Now it is working with jdk 1.8.0_291 as well.
I updated to Arctic fox 2020.3.1 version of Android studio
Original Author Of This Content
Conclusion
So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.