Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attribute application@appComponentFactory value=XXX from [XXX] is also present at [XXX] #50

Open
Jaroslav84 opened this issue Sep 12, 2019 · 0 comments

Comments

@Jaroslav84
Copy link

Jaroslav84 commented Sep 12, 2019

Building app produces the following gradle 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]

As suggested I added this into AndroidManifest.xml:

<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
	xmlns:tools="http://schemas.android.com/tools">

<application tools:replace="android:appComponentFactory"
        android:appComponentFactory="androidx>

...but it did not help.

I have a new error:

Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.
> com.android.build.api.transform.TransformException: Error while generating the main dex list:
  Error while merging dex archives: 
  Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
  Program type already present: android.support.v4.app.INotificationSideChannel$Stub$Proxy

I do use multiDexEnabled true so I don't know why it's crying about duplicate classes.

tns-android v5.2.1
minSDK 17
targetSdkVersion 28 (28.0.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant