命令行执行
react-native run-android
报如下错误:
Exception in thread "main" java.net.UnkNownHostException: services.gradle.org
解决方案:
127.0.0.1 主机名 ps:127.0.0.1 Administrator
2.错误信息:
Failed to notify ProjectEvaluationListener.afterEvaluate(),but primary configur
ation failure takes precedence.
java.lang.RuntimeException: SDK location not found. Define location with sdk.dir
in the local.properties file or with an ANDROID_HOME environment variable.