我在Mac终端上试试这个命令
react-native run-android
并收到此错误
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/web2/AwesomeProject/android/app/build.gradle' line: 1
* What went wrong:
A problem occurred evaluating project ':app'.
java.lang.UnsupportedClassVersionError:com / android / build / gradle / AppPlugin:不支持的major.minor版本52.0
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
我已经安装了
java version "1.6.0_65"
由于
答案 0 :(得分:0)
我通过将Java版本1.6更新为1.8来修复此错误:)