crazycodeboy / GitHubPopular

这是一个用来查看GitHub最受欢迎与最热项目的App,它基于React Native支持Android和iOS双平台。#适配RN最新版在这里☞#

Home Page:http://coding.imooc.com/class/304.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

mengqiannian opened this issue · comments

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

同问,有解决吗?

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

commented

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