android studio 更改gradle版本方法(备忘)

如果出现类似以下:

Your build is currently configured to use Java 17.0.11 and Gradle 6.1.1.

或者类似:

Failed to calculate the value of task ':app:compileDebugJavaWithJavac' property 'options.generatedSo

消息时需要修改gradle版本,升级和降级也适用。

gradle可下载版本地址:

http://mirrors.cloud.tencent.com/gradle/

原位置:

复制代码
https://services.gradle.org/distributions/distributions/gradle-5.4.1-all.zip

这个链接已经无法访问了,无法下载文件。

修改该网址位置:

android-gradle scripts-gradle-wrapper.properties内

如下图:

gradle可下载版本地址:

http://mirrors.cloud.tencent.com/gradle/fl

截图:

相关推荐
火柴就是我6 小时前
让我们实现一个更好看的内部阴影按钮
android·flutter
砖厂小工13 小时前
用 GLM + OpenClaw 打造你的 AI PR Review Agent — 让龙虾帮你审代码
android·github
张拭心13 小时前
春节后,有些公司明确要求 AI 经验了
android·前端·人工智能
张拭心13 小时前
Android 17 来了!新特性介绍与适配建议
android·前端
Kapaseker16 小时前
Compose 进阶—巧用 GraphicsLayer
android·kotlin
黄林晴16 小时前
Android17 为什么重写 MessageQueue
android
阿巴斯甜2 天前
Android 报错:Zip file '/Users/lyy/develop/repoAndroidLapp/l-app-android-ble/app/bu
android
Kapaseker2 天前
实战 Compose 中的 IntrinsicSize
android·kotlin
xq95272 天前
Andorid Google 登录接入文档
android
黄林晴2 天前
告别 Modifier 地狱,Compose 样式系统要变天了
android·android jetpack