Gradle 异常相关

坦白说,不知为何gradle不敢轻易升级。。
GitHub上下载PullToRefresh的项目,打开后报此类异常。

Gradle sync failed: Cause: failed to find Build Tools revision 22.0.1
                Consult IDE log for more details (Help | Show Log) (2m 32s 398ms)
Gradle sync failed: Unsupported method: BaseConfig.getApplicationIdSuffix().
                The version of Gradle you connect to does not support that method.
                To resolve the problem you can change/upgrade the target version of Gradle you connect to.
                Alternatively, you can ignore this exception and read other information from the model.
                Consult IDE log for more details (Help | Show Log) (1m 3s 176ms)

字面意思上是gradle版本需要更新,然而修改gradle版本号的位置并不在appModule里,却在项目的build.gradle里找到了,设置成3.1.2同步后然并卵。

改成了2.3.2,编译报如下异常:

Cause: peer not authenticated

貌似还要继续升啊!不知道这个gradle版本和Studio版本有啥关联。。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值