亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

使用 命令 react-native run-android 報這個錯,如何解決呢?

Starting JS server...

Building and installing the app on the device (cd android && gradlew.bat installDebug)...


FAILURE: Build failed with an exception.


* Where:

Build file 'D:\FirstApp\android\app\build.gradle' line: 1


* What went wrong:

A problem occurred evaluating project ':app'.

> java.lang.UnsupportedClassVersionError: com/android/build/gradle/AppPlugin : Unsupported major.minor version 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


Total time: 4.598 secs

Could not install the app on the device, read the error above for details.

Make sure you have an Android emulator running or a device connected and have

set up your Android development environment:

https://facebook.github.io/react-native/docs/android-setup.html


正在回答

2 回答

jdk 1.8?以上后,還是不行

0 回復 有任何疑惑可以回復我~
#1

雨點3616659 提問者

把react-native版本降低到0.46.4 react用16.0.0-alpha.12
2019-02-18 回復 有任何疑惑可以回復我~

jdk用1.8以上的

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
ReactNative入門與進階
  • 參與學習       70469    人
  • 解答問題       168    個

React Native跨平臺技術入門與進階

進入課程

使用 命令 react-native run-android 報這個錯,如何解決呢?

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號