gpt4 book ai didi

android - gradle 4.4 升级后找不到 manifest-merger.jar (com.android.tools.build :manifest-merger:26. 1.2) 错误

转载 作者:IT老高 更新时间:2023-10-28 21:53:40 25 4
gpt4 key购买 nike

升级到 gradle 4.4 后:

gradle-wrapper.properties

distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip

Android 项目编译失败并出现以下错误:

Could not find manifest-merger.jar (com.android.tools.build:manifest-merger:26.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/manifest-merger/26.1.2/manifest-merger-26.1.2.jar

最佳答案

解决方案非常简单,您必须在根 build.gradle 文件中反转 jcenter()google() 存储库(在我的 jcenter() 中是第一个):

buildscript {

repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'


// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
google()
jcenter()
}
}

关于android - gradle 4.4 升级后找不到 manifest-merger.jar (com.android.tools.build :manifest-merger:26. 1.2) 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50563783/

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