Skip to content Skip to sidebar Skip to footer

Android Studio Building Errors Using React Native App

I have been trying to create an app using react native using expo tools xde and then detach it using exp detach, when I open in Android Studio I get quite many error when building

Solution 1:

As the error states, you have to replace compile with implementation in dependencies since compile is obsolete.

Example

dependencies {
    implementation 'com.android.support:support-v4:25.4.0'
    implementation 'com.android.support:recyclerview-v7:25.4.0'
    implementation 'com.android.support:design:25.4.0'
    ....
}

Solution 2:

Please Note :

If you create an app with create-react-native-app and then detach you can still use most of Expo's feature such as maps for instance.

But if you create a react native project with react-native init you won't be able to use any of expo's feature.

Post a Comment for "Android Studio Building Errors Using React Native App"