React-native Awesome项目不构建android项目

前端之家收集整理的这篇文章主要介绍了React-native Awesome项目不构建android项目前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试学习反应性,但是无法构建演示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 > com.facebook.fresco:imagepipeline:0.6.1

我不知道为什么它在这个文件文件中查找:

/Users/<username>/.m2/repository/com/android/support/appcompat-v7/23.0.1

安装的sdk版本是23.0.1仍然我得到这个错误

我有一个dotnet背景试图学习反应性。

终于得到了您必须在Android SDK管理器中安装附加的Android支持存储库

打开SDK,向下滚动到最后一部分,打开附加组件,选择Android支持资源库,然后点击“安装软件包”这里是一个截图

猜你在找的React相关文章