清单合并失败:来自[com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 <的属性application @ appComponentFactory value =(android.support.v4.app.CoreComponentFactory) / p>
这是我的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"
}
清单
<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>
答案 0 :(得分:3)
您对Gradle或清单没有任何问题,我也在寻找解决此问题的方法,清单中您无需更改任何内容,而是至少将SDK用作最低版本21并为了避免没收,请尝试下载Lottie的版本(我使用的是2.7.0),并尝试在Gradle中添加以下几行:
ng run
祝您好运!更新我!