Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在react-native run-android的时候,出现下面的报错,是什么问题?麻烦帮忙看看,谢谢 #77

Open
mengqiannian opened this issue Aug 22, 2018 · 3 comments

Comments

@mengqiannian
Copy link

Scanning 673 folders for symlinks in E:\abc\node_modules (33ms)
Starting JS server...
Building and installing the app on the device (cd android && gradlew.bat install
Debug)...
Support for running Gradle using Java 6 has been deprecated and will be removed
in Gradle 3.0

FAILURE: Build failed with an exception.

  • Where:
    Build file 'E:\abc\android\app\build.gradle' line: 1

  • What went wrong:
    A problem occurred evaluating project ':app'.

java.lang.UnsupportedClassVersionError: com/android/build/gradle/AppPlugin : U
nsupported 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: 13.203 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

@Yogurtla
Copy link

同问,有解决吗?

@mengqiannian
Copy link
Author

把java(jdk)环境更新到版本8(1.8)

@freecodemans
Copy link

是1.8的啊,还是报错怎么解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants