Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.3.1] AndroidManifest.xml:24: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 <application> element at AndroidManifest.xml:5:5-20:19 to override.
See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.
Execution failed for task ‘:app:processDebugManifest’.
> Manifest merger failed : Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.3.1] AndroidManifest.xml:24: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 <application> element at AndroidManifest.xml:5:5-20:19 to override.
* Try:
Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output. Run with –scan to get full insights.
After upgrading Android Studio to 4.2 today, I set up the project as before. A few days ago, it was fine (the previous version of Androidstudio 4.0). The third package and the version are the same. They are all copied from the runnable project. Suddenly this error was reported. According to other methods on the Internet, it will not work. The problem is mainly a package conflict, that is, the package conflict between appcomcat and AndroidX.
Solution:
It is found that after upgrading to Androidstudio4.2, in the gradle.properties file, the default android.enableJetifer = true attribute (that is, the third-party package is converted to AndroidX) is removed, and this attribute will not be reported after adding mistaken.
Read More:
- [Solved] Execution failed for task ‘:app:uploadCrashlyticsMappingFileRelease‘
- Android studio compilation failed: java.util.concurrent.ExecutionException: com.android.ide.common.process.Process
- [Solved] SpringBoot Task Error: Unexpected error occurred in scheduled task
- [Solved] Hive Run SQL error: mapreduce failed to initiate a task
- Android solution Java.util.concurrent.ExecutionException: com.Android.ide.common.process.ProcessException: exception
- How to Solve Flynk Task Java verifyerror 209 error
- Doris streamload task reported an error connection reset [How to Solve]
- [Solved] Flyway Error: Detected applied migration not resolved locally:2 and the execution script error
- [Solved] IDEA jsp File Error: pageContext.setAttribute(“APP_PATH“,request.getContextPath());
- [Solved] Tesseract ocr error: JFIF APP0 must be first marker after SOI
- [Solved] Jenkins error: Asynchronous execution failure
- Three ways of thread sequence alternate execution in Java lock free programming
- [Solved] ERROR o.s.s.s.TaskUtils$LoggingErrorHandler – Unexpected error occurred in scheduled task.
- Android activity Fail to Switch to androidx AppCompatActivity Error
- Java uses single thread pool to realize multi thread sequential execution (non alternating, non synchronous)
- Android startup page (solve the problem of starting black and white screen)
- [Solved] AS Error: Error inflating class android.support.v4.view.ViewPager
- Android Studio Cannot resolve symbol [How to Solve]
- [Solved] AndroidStudio Error: Could not initialize class com.android.sdklib.repository.AndroidSdkHandler
- Android Studio Error: Error:moudle not specified [How to Solve]