AndroidX Issue???
See original GitHub issueNot sure what this issue is about but I just noticed this error started this morning. Could be AndroidX related. I tried building an empty NativeScript project and it built fine. Once I added a Google plugin, I get this error.
Error
- 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:17:2-38:16 to override.
tns info
✔ Getting NativeScript components versions information…
⚠ Update available for component nativescript. Your current version is 5.4.0 and the latest available version is 5.4.1.
✔ Component tns-core-modules has 5.4.2 version and is up to date.
✔ Component tns-android has 5.4.0 version and is up to date.
✔ Component tns-ios has 5.4.2 version and is up to date.
package.json
{
“nativescript”: {
“id”: “org.nativescript.NSHelloWorld”,
“tns-android”: {
“version”: “5.4.0”
},
“tns-ios”: {
“version”: “5.4.2”
}
},
“description”: “NativeScript Application”,
“license”: “SEE LICENSE IN <your-license-filename>”,
“repository”: “<fill-your-repository-here>”,
“dependencies”: {
“@angular/animations”: “~8.0.0”,
“@angular/common”: “~8.0.0”,
“@angular/compiler”: “~8.0.0”,
“@angular/core”: “~8.0.0”,
“@angular/forms”: “~8.0.0”,
“@angular/http”: “~8.0.0-beta.10”,
“@angular/platform-browser”: “~8.0.0”,
“@angular/platform-browser-dynamic”: “~8.0.0”,
“@angular/router”: “~8.0.0”,
“nativescript-angular”: “~8.0.0”,
“nativescript-google-maps-sdk”: “^2.7.0”,
“nativescript-theme-core”: “~1.0.4”,
“reflect-metadata”: “~0.1.12”,
“rxjs”: “~6.5.0”,
“tns-core-modules”: “~5.4.0”,
“zone.js”: “~0.9.1”
},
“devDependencies”: {
“@angular/compiler-cli”: “~8.0.0”,
“@ngtools/webpack”: “~8.0.0”,
“nativescript-dev-typescript”: “~0.10.0”,
“nativescript-dev-webpack”: “~0.24.0”
},
“gitHead”: “8c1a4866a66daab09bf5ef8e5a96472687192373”,
“readme”: “NativeScript Application”
}
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:18 (1 by maintainers)
Top GitHub Comments
The issue why we’re having this issue today is because Google released a new version of Google Play Services (breaking change).
You will have to migrate your plugins in NativeScript to support AndroidX.
The temporary fix is to use Google Play Service version 15.0.0.
Create a
before-plugins.gradle
in the same directory asapp.gradle
inside App_Resources > Android and use the code below.Make sure you add this in the AndroidManifest.xml inside
<application>
tag.I had to delete my platforms folder first before doing a
tns build/run android --bundle
again. Try this out and let me know if this fixes your problem.I lost all day yesterday to check each plugin for this error. Happy tears