无法解决依赖关系。?

时间:2015-11-15 19:54:59

标签: android gradle dependencies

您好我刚刚将我的android studio项目从一台PC导入到另一台PC,当构建它时显示错误,在offine模式下构建项目时检测到未解析的依赖项。我在Gradle设置中取消选中了OFFLINE WORK。取消选中后,它现在显示错误

UIViewController
  

找不到com.android.support:support-v4:23.0.1。        在以下位置搜索:            https://jcenter.bintray.com/com/android/support/support-v4/23.0.1/support-v4-23.0.1.pom            https://jcenter.bintray.com/com/android/support/support-v4/23.0.1/support-v4-23.0.1.jar            文件:/ C:/Users/user/AppData/Local/Android/sdk1/extras/android/m2repository/com/android/support/support-v4/23.0.1/support-v4-23.0.1.pom            文件:/ C:/Users/user/AppData/Local/Android/sdk1/extras/android/m2repository/com/android/support/support-v4/23.0.1/support-v4-23.0.1.jar            文件:/ C:/Users/user/AppData/Local/Android/sdk1/extras/google/m2repository/com/android/support/support-v4/23.0.1/support-v4-23.0.1.pom            文件:/ C:/Users/user/AppData/Local/Android/sdk1/extras/google/m2repository/com/android/support/support-v4/23.0.1/support-v4-23.0.1.jar        要求:            TheFlame:app:未指定> me.dm7.barcodescanner:zxing:1.8.3> me.dm7.barcodescanner:核心:1.8.3

任何人都可以快速帮助我。

2 个答案:

答案 0 :(得分:4)

Similiar Issue

确保在 SDK Manager <中更新&#34; Android支持存储库&#34; &#34; Android支持库&#34; /强>

并确保在Android Studio中完成 Gradle Sync

enter image description here

答案 1 :(得分:0)

试试这个:

1)打开SDK Manager

2)启动独立SDK Manager

3)额外支持并检查支持库的更新

4)安装

5)同步Gradle