![](/img/trans.png)
[英]Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'
[英]How can i solve the following error while run the app : Could not resolve all files for configuration?
失敗:構建失敗,發生異常。
出了什么問題:無法解析配置':react-native-camera:debugCompileClasspath'的所有文件。
找不到play-services-basement.aar(com.google.android.gms:play-services-basement:15.0.1)。 在以下位置搜索: https : //jcenter.bintray.com/com/google/android/gms/play-services-basement/15.0.1/play-services-basement-15.0.1.aar
嘗試:使用--stacktrace選項運行以獲取堆棧跟蹤。 使用--info或--debug選項運行以獲取更多日志輸出。 與--scan一起運行以獲取完整的見解。
在https://help.gradle.org上獲得更多幫助
在0秒內失敗,完成12項可執行的任務:1項已執行,11項最新無法在設備上安裝該應用程序,有關詳細信息,請閱讀上面的錯誤。 確保已運行Android模擬器或已連接設備,並已設置Android開發環境: https : //facebook.github.io/react-native/docs/getting-started.html
您正在運行的構建命令是什么。 正如它說的--stacktrace
可能會有所幫助。 像(假設package.json / npm等) npm run build --stacktrace
或在腳本中- <BUILD-PACKAGE> --stacktrace [options]
的package.json:
{
"scripts": {
"makeItSo": "<BUILD-PACKAGE> --stacktrace [options]"
}
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.