question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AndroidX Issue???

See original GitHub issue

Not 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:open
  • Created 4 years ago
  • Reactions:4
  • Comments:18 (1 by maintainers)

github_iconTop GitHub Comments

37reactions
18clanscommented, Jun 20, 2019

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 as app.gradle inside App_Resources > Android and use the code below.

before-plugins.gradle

android {  
  project.ext {
      googlePlayServicesVersion = "15.0.0"
  }
} 

Make sure you add this in the AndroidManifest.xml inside <application> tag.

AndroidManifest.xml

<application>
...
...
<uses-library android:name="org.apache.http.legacy" android:required="false"/>
...
...
</application>

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.

2reactions
dungfvcommented, Jun 19, 2019

I lost all day yesterday to check each plugin for this error. Happy tears

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · androidx/media - GitHub
Jetpack Media3 support libraries for media use cases, including ExoPlayer, an extensible media player for Android - Issues · androidx/media.
Read more >
Migrate to AndroidX | Android Developers
If you run into issues with migration, refer to these tables to determine the proper mappings from the support library to the corresponding ......
Read more >
androidx migration problem with several libraries
If you run into an unfortunate problem like mine, do these: 1. Delete all unused imports (grey coloured) from every class.
Read more >
Bugs Support Library 23.2.0 [37083811] - Issue Tracker - Google
I have published a sample app on GitHub to illustrate the issue. ... Notice that the overflow icon appears white on Android 6.0....
Read more >
Troubleshoot OneDrive for Android app problems
Let's get the issue sorted out as quickly as possible. For all OneDrive mobile sync, sharing, and upload issues, make sure you can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found