[英]React Native run android Build failed with an exception
我在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"
謝謝
我通過將Java版本1.6更新為1.8來解決此錯誤:)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.