Android中导入他人项目时报错:Error:(1, 0) Minimum supported Gradle version is 3.3. Current version is 2.14.1...

xiaoxiao2021-02-28  103

编写不易,如有转载,请声明出处: 梦回河口: http://blog.csdn.net/zxc514257857/article/details/72902429

报错的全称为:

Error:(1, 0) Minimum supported Gradle version is 3.3. Current version is 2.14.1. If using the gradle wrapper, try editing the distributionUrl in C:\Users\Administrator\Desktop\RollSquareView-master\gradle\wrapper\gradle-wrapper.properties to gradle-3.3-all.zip

原因:

  我目前AndroidStusio版本为2.2.3,其对应的Gradle插件版本为2.14.1版本,我将导入项目的Gradle插件版本修改为2.14.1版本后,没有注意到此项目的Gradle版本为2.3.1,而其对应的Gradle插件版本为3.3,因此报出这个错误

解决方法:

  导入他人项目的时候,不仅要注意Gradle插件版本还要注意Gradle版本,最好都改为与本地的版本号一致,这样才不会因为无法访问到外国网络而卡住

———-因本人才疏学浅,如博客或Demo中有错误的地方请大家随意指出,与大家一起讨论,共同进步,谢谢!———-

转载请注明原文地址: https://www.6miu.com/read-53620.html

最新回复(0)