Answers for "BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 60"

0

BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 60

In 'adnroid/gradle/wrapper/gradle-wrapper.properties'
Change distributionUrl to version 7.0.1

In 'android/build.gradle'
Change 'com.android.tools.build:gradle' to version 4.2.0
Posted by: Guest on March-27-2022
0

BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 61

Its about Java JDK. Fix in 2 steps:
#1 open File > Project strutchure > Choose/Add SDK: 'Open JDK 17' in
 - project tab
 - modules tab > dependencies
#2 open YOUR_PROJECT\android\gradle\wrapper\gradle-wrapper.properties
& Change In distributionUrl=
 - "...gradle-6.9-all.zip" To "...gradle-7.4.2-all.zip"
Posted by: Guest on April-07-2022

Code answers related to "BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 60"

Browse Popular Code Answers by Language