欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

Minimum supported Gradle version is 6.5. Current version is 6.1.1. If using the gradle wrapper, try

发布时间:2024/9/27 编程问答 39 豆豆
生活随笔 收集整理的这篇文章主要介绍了 Minimum supported Gradle version is 6.5. Current version is 6.1.1. If using the gradle wrapper, try 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

AndroidStudio在导入别人的项目时发生报错:

FAILURE: Build failed with an exception.* Where: Build file 'E:\android\study_module-main\app\build.gradle' line: 2* What went wrong: An exception occurred applying plugin request [id: 'com.android.application'] > Failed to apply plugin [id 'com.android.internal.version-check']> Minimum supported Gradle version is 6.5. Current version is 6.1.1. If using the gradle wrapper, try editing the distributionUrl in E:\android\study_module-main\gradle\wrapper\gradle-wrapper.properties to gradle-6.5-all.zip* Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.* Get more help at https://help.gradle.org


这个错误是因为没有gradle-wrapper.properties文件,也就没有设置gradle的版本,于是就随便配了个低版的gradle。
这时只需新建一个项目,把新项目目录下的gradle目录复制到该目录下(也可以从现有的能运行的项目下复制),并修改gradle-wrapper.properties里的gradle版本到相应的版本就行了。

要是已经有gradle-wrapper.properties文件,可以直接修改gradle版本到相应的版本

与50位技术专家面对面20年技术见证,附赠技术全景图

总结

以上是生活随笔为你收集整理的Minimum supported Gradle version is 6.5. Current version is 6.1.1. If using the gradle wrapper, try的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。