AndroidStudio 1.4升级到1.5后,peer not authenticated错误
来源:互联网 发布:红三兵手机炒股软件 编辑:程序博客网 时间:2024/06/05 20:45
解决方法:
找到项目最外层的build.gradle文件,将其中的:
dependencies {
classpath 'com.android.tools.build:gradle:1.2.3'
}
修改为:
dependencies { classpath 'com.android.tools.build:gradle:1.3.0'}
就好了!如果还不好,可以将此文件里的jcenter()修改为:
jcenter {
url "http://jcenter.bintray.com/"
}
补充:如果要修改项目中gradle的版本,光看下面还不行:
在项目设置里:
可以看到这个版本才是项目构建用的版本,这和项目根目录gradle文件夹下的wrapper是对应的:
总结:如果修改gradle版本,可直接在项目里的设置更改,在根目录下的wrapper得到验证。
参考链接:http://stackoverflow.com/questions/26734738/android-studio-gradle-build-failed-errorcause-peer-not-authenticated
补充说明:
后来发现是gradle2.8的问题,下载gradle2.9,然后将AS里的路径指向修改下即可,build.gradle不用修改。
3 0
- AndroidStudio 1.4升级到1.5后,peer not authenticated错误
- cloud control peer not authenticated错误解决
- SSLPeerUnverified peer not authenticated
- Gradle peer not authenticated
- Maven “peer not authenticated”
- 执行Gradle clean命令后,报错:peer not authenticated
- Android Studio : 导入项目出现 peer not authenticated 错误
- Error:Cause: peer not authenticated
- Error:Cause: peer not authenticated
- httpclient 出现peer not authenticated 问题解决 https
- Gradle sync failed: peer not authenticated
- Android studio error gradle peer not authenticated
- Error:Cause: peer not authenticated 异常
- gradle编译问题:Cause: peer not authenticated
- Error:Cause: peer not authenticated修复
- AS出现Error:Cause: peer not authenticated
- javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
- peer not authenticated和Could not generate DH keypair解决方法
- 我也要谈谈大型网站架构之系列(3)——死了都要说的缓存
- Struts2:国际化
- HttpClient 中文编码问题
- Git Patch生成和应用指南
- BSP and Web Dynpro
- AndroidStudio 1.4升级到1.5后,peer not authenticated错误
- Textview显示文字时格式参差不齐的解决方式
- 漫谈程序员(九)版本命名规范
- Excel文档的生成和压缩
- 学习笔记之pdf在线预览插件的使用(可以适应浏览器)
- iOS图片编辑(CIFilter)
- linux下的线程锁----原子锁
- ubuntu“apt-get -f install”问题解决
- QThread中的互斥、读写锁、信号量、条件变量