[英]How can i solve the following error while run the app : Could not resolve all files for configuration?
FAILURE: Build failed with an exception. 失败:构建失败,发生异常。
What went wrong: Could not resolve all files for configuration ':react-native-camera:debugCompileClasspath'. 出了什么问题:无法解析配置':react-native-camera:debugCompileClasspath'的所有文件。
Could not find play-services-basement.aar (com.google.android.gms:play-services-basement:15.0.1).
找不到play-services-basement.aar(com.google.android.gms:play-services-basement:15.0.1)。 Searched in the following locations: https://jcenter.bintray.com/com/google/android/gms/play-services-basement/15.0.1/play-services-basement-15.0.1.aar
在以下位置搜索: https : //jcenter.bintray.com/com/google/android/gms/play-services-basement/15.0.1/play-services-basement-15.0.1.aar
Try: Run with --stacktrace option to get the stack trace. 尝试:使用--stacktrace选项运行以获取堆栈跟踪。 Run with --info or --debug option to get more log output.
使用--info或--debug选项运行以获取更多日志输出。 Run with --scan to get full insights.
与--scan一起运行以获取完整的见解。
Get more help at https://help.gradle.org 在https://help.gradle.org上获得更多帮助
BUILD FAILED in 0s 12 actionable tasks: 1 executed, 11 up-to-date Could not install the app on the device, read the error above for details. 在0秒内失败,完成12项可执行的任务:1项已执行,11项最新无法在设备上安装该应用程序,有关详细信息,请阅读上面的错误。 Make sure you have an Android emulator running or a device connected and have set up your Android development environment: https://facebook.github.io/react-native/docs/getting-started.html
确保已运行Android模拟器或已连接设备,并已设置Android开发环境: https : //facebook.github.io/react-native/docs/getting-started.html
what is the build command you are running. 您正在运行的构建命令是什么。 as it says adding
--stacktrace
to that may help. 正如它说的
--stacktrace
可能会有所帮助。 something like (assuming package.json/npm etc) - npm run build --stacktrace
or in the scripts - <BUILD-PACKAGE> --stacktrace [options]
像(假设package.json / npm等)
npm run build --stacktrace
或在脚本中- <BUILD-PACKAGE> --stacktrace [options]
package.json: 的package.json:
{
"scripts": {
"makeItSo": "<BUILD-PACKAGE> --stacktrace [options]"
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.