由于依赖关系,在运行android中构建失败
发布时间:2020-12-14 00:46:38 所属栏目:百科 来源:网络整理
导读:运行 android时出现问题.我正面临一个问题,我猜这是毕业生的依赖性. 我甚至尝试过sudo,这是给一些其他随机错误说$ANDROID_HOME.哪个不是问题. JS server already running.Building and installing the app on the device (cd android ./gradlew installDebug
运行
android时出现问题.我正面临一个问题,我猜这是毕业生的依赖性.
我甚至尝试过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. 我哪里做错了?
Android支持存储库缺少安装,再次按照以下所有步骤:
https://facebook.github.io/react-native/docs/android-setup.html
https://github.com/facebook/react-native/issues/2772#issuecomment-140843907 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |