Error Log
Manifest merger failed with multiple errors, see logs
Merged Manifest
Manifest merger failed : Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 is also present at [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 value=(android.support.v4.app.CoreComponentFactory). Suggestion: add 'tools:replace="android:appComponentFactory"' to element at AndroidManifest.xml:31:5-163:19 to override.
Solution
gradle.properties에 아래 두 줄 추가
android.useAndroidX=true
android.enableJetifier=true
Manifest 파일에서 tools:replace="android:appComponentFactory" 삭제
- Ref
'System Programming > Android' 카테고리의 다른 글
[Android/Kotlin] Coroutines (0) | 2021.08.30 |
---|---|
[Android] Jetpack Compose (0) | 2021.08.05 |
[Android/Kotlin] Kotlin extension (0) | 2021.07.08 |
[Android/Kotlin] Room을 사용하여 로컬 데이터베이스에 데이터 저장 (0) | 2021.07.08 |
[Android/Firebase] Firebase CRUD (0) | 2021.07.03 |