Android Studio building errors using react native app

喜你入骨 提交于 2019-11-29 11:20:22

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'
    ....
}

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!