Gradle 异常相关

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_34781711/article/details/80690440

坦白说,不知为何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版本有啥关联。。

猜你喜欢

转载自blog.csdn.net/qq_34781711/article/details/80690440
今日推荐