android - 使用lottie 时 list 合并失败并出现多个错误

标签 android

list 合并失败:属性 application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) 来自 [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91

这是我的 gradle 文件:

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    // RxJava
    implementation 'io.reactivex.rxjava2:rxjava:2.1.9'

// RxAndroid
    implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'

    implementation 'com.android.support:customtabs:28.0.0-alpha3'
    implementation "com.airbnb.android:lottie:2.8.0"

}

list

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.learnapplication">
    <uses-sdk tools:overrideLibrary="android.support.customtabs"/>
    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity android:name=".MainActivity">

        </activity>
        <activity android:name=".CustomTabActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

最佳答案

您对 Gradle 或 list 没有任何问题,我也在寻找此问题的解决方案,并且在 list 中您不必更改任何内容,而是使用至少 21 的 SDK 最低版本为了避免被没收,请尝试降低 Lottie 的版本(我使用的是 2.7.0)并尝试在 Gradle 中添加以下几行:

implementation ('com.airbnb.android:lottie:2.7.0') {
    exclude group: 'com.android.support', module: 'support-v7'
    exclude group: 'com.android.support', module: 'support-v4'
    exclude group: 'com.android.support', module: 'design'
    exclude group: 'com.android.support', module: 'recyclerview'
    exclude group: 'com.android.support', module: 'transition'
}

祝兄弟好运!更新我!

关于android - 使用lottie 时 list 合并失败并出现多个错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53425291/

相关文章:

android - 如何禁用 Google map 上的交通图层?

java - Android Google map v2 中的标记

java - 使用逐帧动画制作transitionX动画会导致滞后

java - 安卓 5 : No more Garbage Collection message?

android - 是否有用于从手机存储中删除操作的监听器?

java - 从 ListView Activity 中选择选项后如何返回主要 Activity

android - 如何修复位图大小超出 VM 预算的错误

android - 如何禁用在软键盘上显示 "suggestions"

android - 如何在 subview 和父 View 组触摸事件之间变化

android - 改造和 orm 库抛出 StackOverflow