阅读更多 修改项目根目录下的 build.gradle 文件,追加如下内容:
allprojects {    repositories {        jcenter()        maven {            url "https://maven.google.com"        } // 注意要添加 Google 仓库        mavenCentral()    }}

如果你的 Android Gradle plugin 版本很高,例如 3.0.0-alpha1,那么你可简单的使用 google() 代替 maven。
例如:
allprojects {    repositories {        jcenter()        google() // 注意要添加 Google 仓库        mavenCentral()    }}

更多相关文章

  1. Android中快速为Recyclerview添加头部
  2. Android(安卓)Studio 打包发布apk
  3. 【Android】JNICALL could not be resolved
  4. android studio 3.5.1 使用第三方.so 库
  5. Android(安卓)8.1 MT6739 预置apk 可卸载
  6. android小功能实现之拨打电话
  7. android ndk中使用gprof
  8. Android(安卓)Studio 添加已有工程方法
  9. Github中的Android时间,日期选择器

随机推荐

  1. 博客园app for xamarin android一款简洁
  2. Android中的sqlite简单示例
  3. android studio 3.6.0 绑定视图新特性的
  4. Android XML 解析
  5. android ActivityManagerService服务详解
  6. Eclipse Android SDK Manager下载失败解
  7. android api 完整翻译之Contacts Provide
  8. android -h 'xcopy' 不是内部或外部命令
  9. Android应用程序汉化教程
  10. Android常用DOS命令