gradle编译问题:Cause: peer not authenticated
来源:互联网 发布:淘宝神笔我的模块批量 编辑:程序博客网 时间:2024/04/29 17:36
问题:android studio 2.1.2版本,项目使用gradle 2.10,java使用1.7.0_101,
classpath 'com.android.tools.build:gradle:2.1.0',系统ubuntu14.04
在项目中引用下面的库时候,gradle总是编译不了,提示 Cause: peer not authenticated
maven {
url "https://jitpack.io"
}
网上都虽然有人也遇到相识问题,但遇到这个问题的时候,是gradle很老的版本,解决
方案基本都是升级gradle版本,但我使用的gradle2.10算很高了,而且同事电脑使用我相
同的gradle版本(当时没看他们java版本),同样的项目都没问题。
最后,还是在https://jitpack.io官网找到答案。
How do I solve peer not authenticated error in Gradle?
If you are running Gradle on Linux you might get the peer not authenticated error.
There are at least two ways to solve this: - Upgrade to Gradle 2.11 - Run Gradle
with Java 8. The project itself doesn’t need to use Java 8.
解决方案要升级gradle 2.11以上版本,或者使用java 8。
于是再次查看同事的java版本,发现是1.8(java 8)。
最后我升级gradle 2.12后,确实可以了。但如果不看到这段官方原话,即使解决了这个问题也会
很纠结。
1 0
- gradle编译问题:Cause: peer not authenticated
- Gradle peer not authenticated
- Error:Cause: peer not authenticated
- Error:Cause: peer not authenticated
- Error:Cause: peer not authenticated 异常
- Error:Cause: peer not authenticated修复
- AS出现Error:Cause: peer not authenticated
- Gradle sync failed: peer not authenticated
- Android studio error gradle peer not authenticated
- android studio Error:Cause: peer not authenticated的解决方案
- Gradle peer not authenticated以及gradle依赖查找
- 执行Gradle clean命令后,报错:peer not authenticated
- Ubuntu下Android Studio Gradle sync failed peer not authenticated
- SSLPeerUnverified peer not authenticated
- Maven “peer not authenticated”
- Android studio 报错 gradel project sync failed Error:Cause: peer not authenticated
- Android Studio导入工程报错 Error:Cause: peer not authenticated 解决方案
- Android studio 导入项目报 Error:Cause: peer not authenticated 异常
- struts入门训练 文件下载
- 思科单臂路由的配置
- linux下coredump的配置与调试
- Angular双向数据绑定原理
- 语法树学习总结
- gradle编译问题:Cause: peer not authenticated
- HTML 使用CSS 设置透明度Opacity
- xenserver监控vm中的docker容器
- 解决C/C++程序执行一闪而过的方法
- 4-1 简单输出整数 (10分)
- 拦截器的使用
- 设置VIM的配色方案
- 对XStream的实例应用1
- storm坑之---同步问题