Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29612

react-native-google-signin and android.support.v4.net does not exist error

$
0
0

I have some problem when integrating react-native-google-signin into native android code. I use react-native 0.59.8 and i can't upgrade to 0.60 so far. Therefore I followed an instruction for older react-native-google-signin version which is 2.1.1. Unfortunately it's not working for me. It gives me some errors concerning androidX but as far as I know react-native-google-signin started using androidX from version 3.0.0 upwards, but i use 2.1.1 version which should not use androidX.

Description

The problem starts in sync proccess in Android Studio which gives me the following error:

Manifest merger failed

ERROR: 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.1] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:7:5-117 to override.

Now when I'm trying to build my project in Android Studio it gives me another error:

enter image description here

error: package android.support.v4.net does not exist

Interesingly, now problem concerns the package @react-native-community/netinfo which was working fine before I linked react-native-google-signin into my project. I would be very grateful if someone told me what's going on.

EDIT:

My dependencies section from android/app/build.gradle is as follows:

dependencies {
    implementation project(':react-native-google-signin')
    implementation project(':react-native-reanimated')
    implementation project(':react-native-gesture-handler')
    implementation project(':react-native-firebase')
    implementation project(':react-native-community-netinfo')
    implementation project(':react-native-orientation')
    implementation project(':react-native-keychain')
    implementation project(':react-native-view-shot')
    implementation project(':react-native-video')
    implementation project(':react-native-fs')
    implementation project(':react-native-blur')
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
    implementation 'com.facebook.react:react-native:+'
    implementation 'com.android.support:design:27.1.1'
    implementation project(':react-native-navigation')
    implementation 'com.google.android.gms:play-services-base:16.1.0'
    implementation 'com.google.firebase:firebase-core:16.0.8'
    implementation "com.google.firebase:firebase-messaging:17.5.0"
}

Viewing all articles
Browse latest Browse all 29612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>