清单合并失败:属性application @ appComponentFactory

an

我正在尝试实现Iconics库,但出现此错误。

Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0-rc02] AndroidManifest.xml:22:18-91
    is also present at [androidx.core:core:1.0.0-rc02] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
    Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:7:5-58:19 to override.

这是我的依赖项:

final String version= '28.0.0-rc02'
dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation "com.android.support:support-v4:$version"
    implementation "com.android.support:appcompat-v7:$version"
    implementation "com.android.support:design:$version"
    implementation "com.android.support.constraint:constraint-layout:1.1.3"
    implementation "com.github.GrenderG:Toasty:1.3.0"
    implementation "com.github.daniel-stoneuk:material-about-library:2.3.0"
    implementation "com.mikepenz:iconics-core:3.1.0-rc02"
    implementation 'com.mikepenz:community-material-typeface:2.7.94.1@aar'
}

我该怎么办?

阿明·平贾里(Amin Pinjari)

在Gradle.Properties中添加以下两行

android.useAndroidX=true
android.enableJetifier=true

我遇到了同样的问题,或点击以下链接

https://developer.android.com/jetpack/androidx/migrate

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

清单合并失败:属性application @ appComponentFactory

错误:清单合并失败:属性application @ appComponentFactory

清单合并失败:添加Exoplayer 2.10.5后,属性application @ appComponentFactory

清单合并失败:属性 application@appComponentFactory Google Play 服务

清单合并失败:属性application @ appComponentFactory-Androidx

清单合并失败:属性application @ appComponentFactory ... Android Studio 3.2

错误:清单合并失败:属性 application@appComponentFactory 值

清单合并失败:属性应用@ appComponentFactory更新火力地堡库

React Native Android构建错误:清单合并失败:属性application @ appComponentFactory

清单合并失败:属性application @ appComponentFactory(android.support.v4.app.CoreComponentFactory)

清单合并失败:属性应用@ appComponentFactory并不能解决这个

清单合并失败:属性application @ theme

关于appComponentFactory的AndroidX构建在发布模式下失败

错误:来自[androidx.core:core:1.0.0]的属性application @ appComponentFactory value =(androidx.core.app.CoreComponentFactory)

React Native-在包'android'中找不到属性'appComponentFactory'的资源标识符

工具:替换在第11行为属性android:appComponentFactory指定的属性,但未为应用主清单(此文件)的第10行指定新值

错误:(19)尝试安装ADMOB时,在包“ android”中找不到属性“ appComponentFactory”的资源标识符

工具:replace="android:appComponentFactory 错误

清单合并失败

清单合并失败错误

Android清单合并失败

清单合并失败。

清单合并失败1

清单合并失败,错误的编译

清单合并失败:Android Studio

如何修复清单合并失败

清单合并失败错误,构建失败

自定义 AppComponentFactory 无法实例化应用程序

Android Gradle中的清单合并失败错误