crazycodeboy / GitHubPopular

这是一个用来查看GitHub最受欢迎与最热项目的App,它基于React Native支持Android和iOS双平台。#适配RN最新版在这里☞#
http://coding.imooc.com/class/304.html
2.91k stars 582 forks source link

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

Open mengqiannian opened 6 years ago

mengqiannian commented 6 years ago

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.

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 commented 6 years ago

同问,有解决吗?

mengqiannian commented 6 years ago

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

freecodemans commented 6 years ago

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