0

I am trying to get the deviceid with react-native-device-info. I started with an empty expo project which I ejected.

I imported the library, I also linked it. But then I get gradle errors in android studio.

Have anyone managed to make it working. Can you tell which version you use?

Error from comments:

:ERROR: In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[15.0. 1]", but isn't being resolved to that version. 
Behavior exhibited by the library will be unknown. 
Dependency failing: com.google.android.gms:play-services-flags:15.0.1 -> com.google.android.gms:play-services-basement@[ 15.0.1], but play-services-basement version was 16.2.0
Andrew
  • 26,706
  • 9
  • 85
  • 101
Tax Raoul
  • 73
  • 2
  • 8
  • 2
    What errors did you get ? – Firdous nath Feb 14 '19 at 08:18
  • I user `"react-native-device-info": "^0.24.3"` with `"react-native": "0.57.1",` I remember having a really hard time installing it, can you show us the error u get? – Rachid Rhafour Feb 14 '19 at 08:20
  • If you are starting with an empty project, wouldn't you be better to create your project with `react-native init`? Also you should post your error messages as it may lead to the source of your problem – Andrew Feb 14 '19 at 09:06
  • i used "expo init" to create the project as it replaces react-native-init. – Tax Raoul Feb 14 '19 at 09:18
  • here ise the error i am getting in Android studio :ERROR: In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[15.0. 1]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown. Dependency failing: com.google.android.gms:play-services-flags:15.0.1 -> com.google.android.gms:play-services-basement@[ 15.0.1], but play-services-basement version was 16.2.0. – Tax Raoul Feb 14 '19 at 09:19

0 Answers0