Description
Cant build once adding the includes for async in android configs get the below warning before building
dependencies using groupId com.android.support and androidx.* can not be combined but found IdeMavenCoordinates{myGroupId='com.android.support', myArtifactId='drawerlayout', myVersion='28.0.0', myPacking='aar', myClassifier='null'} and IdeMavenCoordinates{myGroupId='androidx.core', myArtifactId='core', myVersion='1.0.0', myPacking='aar', myClassifier='null'}
and the following on attempting to build
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:15:5-57:19 to override.
Expected behavior
compile
Environment
compileSdkVersion 28
buildToolsVersion '28.0.3'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support:customtabs:28.0.0'
implementation 'com.android.support:support-media-compat:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation "com.android.support:appcompat-v7:28.0.0"
implementation project(':@react-native-community_async-storage')
"@react-native-community/async-storage": "^1.5.0",
i understand it should be able to change androidx to fix the issue which i tried but i have too many dependencies that are not compatible i think.
Removing the references to async fixes the warnings and it compiles
am i forced to start deprecating these and replacing them with my own code or should i maybe rollback the integration of the new async implementation for now?
IOS builds fine
Thanks!