At the end of Chapter 8, I try to run the program on my emulator but the app doesn’t build. I get a Manifest Merger Failed Error. Looking at the Merged Manifest section of my mail\AndroidManifest.xml I get this error:
Merging Errors: Warning Package name ‘androidx.versionedparcelable’ used in: AndroidManifest.xml, AndroidManifest.xml. versionedparcelable:1.1.1 manifest Error: Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from AndroidManifest.xml:24:18-86 is also present at AndroidManifest.xml:22:18-91 value=(android.support.v4.app.CoreComponentFactory). Suggestion: add ‘tools:replace=“android:appComponentFactory”’ to element at AndroidManifest.xml:6:5-23:19 to override. CriminalIntent.app main manifest (this file), line 23
If I click on the Suggestion, the error changes to:
Merging Errors: Warning Package name ‘androidx.versionedparcelable’ used in: AndroidManifest.xml, AndroidManifest.xml. versionedparcelable:1.1.1 manifest Error: tools:replace specified at line:7 for attribute android:appComponentFactory, but no new value specified CriminalIntent.app main manifest (this file), line 6 Error: Validation failed, exiting CriminalIntent.app main manifest (this file)
Very lost and any help would be appreciated.