Android Studio遇到Failed to resolve: common问题
16lz
2021-01-23
最近在学习Google todomvp项目,但是导入Android Studio时报错了
Failed to resolve: common
然后参考Stack Overflow上的一个答案
将Project的build.gradle文件中的google()挪到jcenter()上面一行就可以了
buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.0.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }}allprojects { repositories { google() jcenter() }}
更多相关文章
- Android spinner 动态添加时报错 java.lang.UnsupportedOperatio
- Android 导入项目时报Android.jar包丢失解决方法
- 《Android移动应用基础教程》(Android Studio)(第二版)黑马教程 课后
- 2020最新Android大厂面试真题大全(附答案)
- [ubuntu 10.04 64bit][android]编译时报错:arm-eabi-gcc command
- ionic打包apk时报错No resource identifier found for attribute
- android studio运行时报错AVD Nexus_5X_API_P is already runnin
- Android Maven 采用第三方jar包,程序运行时报错的解决方案