Minimum supported Gradle version is 6.5. Current version is 6.1.1. If using the gradle wrapper, try
生活随笔
收集整理的這篇文章主要介紹了
Minimum supported Gradle version is 6.5. Current version is 6.1.1. If using the gradle wrapper, try
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
AndroidStudio在導(dǎo)入別人的項(xiàng)目時(shí)發(fā)生報(bào)錯(cuò):
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
這個(gè)錯(cuò)誤是因?yàn)闆]有g(shù)radle-wrapper.properties文件,也就沒有設(shè)置gradle的版本,于是就隨便配了個(gè)低版的gradle。
這時(shí)只需新建一個(gè)項(xiàng)目,把新項(xiàng)目目錄下的gradle目錄復(fù)制到該目錄下(也可以從現(xiàn)有的能運(yùn)行的項(xiàng)目下復(fù)制),并修改gradle-wrapper.properties里的gradle版本到相應(yīng)的版本就行了。
要是已經(jīng)有g(shù)radle-wrapper.properties文件,可以直接修改gradle版本到相應(yīng)的版本
總結(jié)
以上是生活随笔為你收集整理的Minimum supported Gradle version is 6.5. Current version is 6.1.1. If using the gradle wrapper, try的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 部队枪弹失管失控危害有哪些?
- 下一篇: java——JMM内存模型