国内好像不能访问https://maven.google.com,导致Android Studio一值在编译.
在google cn 上偶然发现例一个替代网址 ‘https://dl.google.com/dl/android/maven2/’ .
使用这个就可以了。
也就是把maven { url ‘https://maven.google.com’ }替换成注释的就可以了。

allprojects {    repositories {        jcenter()        maven { url 'https://maven.google.com' }//        maven { url 'https://dl.google.com/dl/android/maven2/' }    }}

参考网址:https://developer.android.google.cn/studio/build/dependencies.html
下图截自参考网址

更多相关文章

  1. Android(安卓)使用Intent隐式传递启动Activity(访问网址,打电话
  2. 在32位的Ubuntu 11.04中为Android(安卓)NDK r6编译FFmpeg0.8.1版
  3. Android2.3源码下载(针对Windows环境)
  4. FAQ_17 android string.xml 里面的 %
  5. android Button设置text属性为字母时,字母自动变成大写
  6. Android(安卓)修改init.rc
  7. android 修改ramdisk.img和init.rc && android启动后设置/d
  8. android 控件 自动提示(AutoCompleteTextView)
  9. Android(安卓)AlertDialog

随机推荐

  1. Android_文档学习_UI_creating menus
  2. eclipse创建2dx项目
  3. 手机上使用google 搜索引擎
  4. Android studio报错Plugin is too old 解
  5. android对话框代码中设置背景为透明
  6. Android 实现下载限速跟下载网速统计
  7. AndRoid Notification的清空和修改
  8. Android客制化------开机拷贝文件到内置
  9. 第一行代码 Android
  10. Android MVP Contract