小编gau*_*kur的帖子

React-native Awesome项目没有构建android项目

我正在尝试学习react-native但我无法构建演示AwesomeProject.我在~/.bash_profile文件中设置了$ ANDROID_HOME变量.但每次我构建它我都会得到以下错误.

什么地方出了错:

 A problem occurred configuring project ':app'.
 Could not resolve all dependencies for configuration ':app:_debugCompile'.
 Could not find com.android.support:appcompat-v7:23.0.1.
 Searched in the following locations:
     file:/Users/<username>/.m2/repository/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.pom
     file:/Users/<username>/.m2/repository/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.jar
     https://jcenter.bintray.com/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.pom
     https://jcenter.bintray.com/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.jar
 Required by:
     AwesomeProject:app:unspecified
 Could not find com.android.support:appcompat-v7:23.0.1.
 Searched in the following locations:
     file:/Users/<username>/.m2/repository/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.pom
     file:/Users/<username>/.m2/repository/com/android/support/appcompat-v7/23.0.1/appcompat-v7-23.0.1.jar
     https link     Required by:
     AwesomeProject:app:unspecified > com.facebook.react:react-native:0.11.0
 Could not find com.android.support:support-v4:21.0.3.
 Searched in the following locations:
     file:/Users/<username>/.m2/repository/com/android/support/support-v4/21.0.3/support-v4-21.0.3.pom
     file:/Users/<username>/.m2/repository/com/android/support/support-v4/21.0.3/support-v4-21.0.3.jar
     https link
 Required by:
     AwesomeProject:app:unspecified > com.facebook.react:react-native:0.11.0 > com.facebook.fresco:fresco:0.6.1 > com.facebook.fresco:drawee:0.6.1
     AwesomeProject:app:unspecified > com.facebook.react:react-native:0.11.0 > com.facebook.fresco:fresco:0.6.1 …
Run Code Online (Sandbox Code Playgroud)

react-native

23
推荐指数
1
解决办法
7120
查看次数

标签 统计

react-native ×1