React-native-device-info: java.lang.NoClassDefFouindError : Failed resolution of: Lcom/google/android/gms/common/util/zzu

Created on 30 Jun 2018  路  3Comments  路  Source: react-native-device-info/react-native-device-info

Have been using this package since December'17 and it was working perfect till now.
Now suddenly facing this issue. It has something to do with Google Play service i guess. Not able to resolve this.

image

Tried the solution given in the troubleshooting section (implemented below in build.gradle) of the repo. Its not working either.
image

react-native : 0.50.3
react-native-device-info : 0.13.0
Affected OS : android
OS version : 8.0

Most helpful comment

Adding the following to build.gradle fixed the issue for me

        maven {
            url "https://dl.google.com/dl/android/maven2/"
        }

All 3 comments

Adding the following to build.gradle fixed the issue for me

        maven {
            url "https://dl.google.com/dl/android/maven2/"
        }

it helped me but i'm not sure what is right
react-native-device-info/src/main/java/RNDeviceModule
2018-11-02 5 04 41

@machour closable - another failure to install correctly, but the library definitely works according to instructions (I just installed it...) - this one is for dependency resolution, people need to define the ext versions in their android/build.gradle so they don't get collisions from other modules

Was this page helpful?
0 / 5 - 0 ratings