运行android时出现问题.我正面临一个问题,我想这是哥们对格拉德尔的依赖.

我甚至try 过sudo,它会出现其他一些随机错误,比如$ANDROID_HOME.这不是问题所在.

JS server already running.
Building and installing the app on the device (cd android && ./gradlew installDebug)...

FAILURE: Build failed with an exception.

* What went wrong:
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.0.
     Searched in the following locations:
         file:/Users/iraycd/.m2/repository/com/android/support/appcompat-v7/23.0.0/appcompat-v7-23.0.0.pom
         file:/Users/iraycd/.m2/repository/com/android/support/appcompat-v7/23.0.0/appcompat-v7-23.0.0.jar
         https://jcenter.bintray.com/com/android/support/appcompat-v7/23.0.0/appcompat-v7-23.0.0.pom
         https://jcenter.bintray.com/com/android/support/appcompat-v7/23.0.0/appcompat-v7-23.0.0.jar
     Required by:
         AwesomeProject:app:unspecified
   > Could not find com.android.support:appcompat-v7:23.0.0.
     Searched in the following locations:
         file:/Users/iraycd/.m2/repository/com/android/support/appcompat-v7/23.0.0/appcompat-v7-23.0.0.pom
         file:/Users/iraycd/.m2/repository/com/android/support/appcompat-v7/23.0.0/appcompat-v7-23.0.0.jar
         https://jcenter.bintray.com/com/android/support/appcompat-v7/23.0.0/appcompat-v7-23.0.0.pom
         https://jcenter.bintray.com/com/android/support/appcompat-v7/23.0.0/appcompat-v7-23.0.0.jar
     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/iraycd/.m2/repository/com/android/support/support-v4/21.0.3/support-v4-21.0.3.pom
         file:/Users/iraycd/.m2/repository/com/android/support/support-v4/21.0.3/support-v4-21.0.3.jar
         https://jcenter.bintray.com/com/android/support/support-v4/21.0.3/support-v4-21.0.3.pom
         https://jcenter.bintray.com/com/android/support/support-v4/21.0.3/support-v4-21.0.3.jar
     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

* 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: 11.247 secs
Could not install the app on the device, see the error above.

我哪里出错了?

React-native相关问答推荐

将 Cognito 用户与真实数据库用户联系起来的最佳方式是什么?

如何在带有decorator 的 react-native 0.56 (Babel 7) 中使用 mobx

如何为我的 React Native Android 应用程序使用 Crashlytics?

如何在 React Native 中创建和保存 CSV 文件?

react-native 中 android 和 iOS 的图像大小

命令失败:gradlew.bat installDebug error whenever installing dependencies like navigation, firebase, icons etc in React-Native

react-native:如何在离线模式下在模拟器上运行应用程序?

react native如何访问文件系统?

react-native run-ios 运行失败: Application is unknown to FrontBoard?

使用来自另一个页面的 fetch 调用函数返回结果值

将 React Native 升级到 0.60-RC2 后找不到库libjsc.so

您将如何在 Alert 中模拟onPress?

Node.js 在 React-Native 中的作用是什么?

错误 React Native CLI 对本机依赖项使用自动链接,但以下模块是手动链接的

开始滚动时使 TouchableOpacity 不突出显示元素

如何在本机代码(Java、ObjectiveC/Swift)中读取 AsyncStorage

react-native如何导入元素根目录?

React-native Awesome 元素没有构建 android 元素

如何允许 react-native 启用对 JSX(扩展)文件的支持

保存时 Visual Studio 代码格式化失败