Posts

Showing posts from February 1, 2019

react-native-device-info crash the app on android

Image
0 I'm using react-native-device-info library in react-native. I've used it for about a year without problems, but since the last two weeks the app on Android crashes because of this library. I get an error as follows: They discussed about this issue here. And they explanation is as follows: Unable to merge dex / Multiple dex files / Problems with com.google.android.gms react-native-device-info uses com.google.android.gms:play-services-gcm to provide [getInstance()][#getinstance]. This can lead to conflicts when building the Android application. If you're using a different version of com.google.android.gms:play-services-gcm in your app, you can define the googlePlayServicesVersion gradle variable in your build.gradle file to tell react-native-device-info what versio...