gpt4 book ai didi

android - AGP版本升级失败

转载 作者:行者123 更新时间:2023-12-04 23:36:52 35 4
gpt4 key购买 nike

我无法更新我的项目。当我尝试这样做时,我收到了这条消息

The Upgrade Assistant failed to upgrade this project, finding no way of performing the Upgrade AGP version from 4.1.3 to 4.2.0 command, possibly because the project's build files use features not currently supported by the Upgrade Assistant (for example: using constants defined in buildSrc, or other unrecognized constructs, in Gradle build files).


我能做些什么呢?

最佳答案

您必须手动更改 build.gradle.kts 中的 gradle 版本(项目),然后在 gradle-wrapper.properties到与您的 build.gradle.kts 版本匹配的版本
例如
构建.gradle.kts"com.android.tools.build:gradle:7.0.0-alpha14"gradle-wrapper.propertiesdistributionUrl=https\://services.gradle.org/distributions/gradle-7.0-all.zip自然地,根据您使用的内容更改版本

关于android - AGP版本升级失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67497019/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com