Open udaychy opened 4 years ago
Same here
BUILD FAILED in 1s
/home/usera/Documents/project/app/cordova/platforms/android/gradlew: Command failed with exit code 1 Error output:
/home/usera/Documents/project/app/cordova/platforms/android/app/src/main/AndroidManifest.xml:22:18-91 Error:
Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:5:5-21:19 to override.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:5:5-21: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.
* Get more help at https://help.gradle.org
Same issue with Capacitor ..any updates?
Bug report
Description
When I try to build the project, I am getting "Manifest merger failed" error. Below are some more details:
Execution failed for task ':app:processReleaseManifest'. Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory). Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:5:5-15:19 to override.
As per the suggestion, I changed the AndroidManifest.xml file and also added
android.useAndroidX=true android.enableJetifier=true
in gradle.properties file but then I started getting "Compilation failed" errorsExecution failed for task ':app:compileReleaseJavaWithJavac'. Compilation failed; see the compiler error output for details..
All the errors are in biometric\BiometricActivity.java file. Below are the complete log.
Environment
Ionic info
Plugins