2 thoughts on “C++ Exception in ‘nativeRequireModuleConfig’

  1. i fixed it temporarily by replacing
    compile 'com.google.android.gms:play-services-gcm:+'
    with
    compile ('com.google.android.gms:play-services-gcm:9.0.1') { force = true; }
    in node_modules/react-native-device-info/android/build.gradle file

  2. similar error here
    C++ Exception in 'nativeRequireModuleConfig': java.lang.IllegalAccessError: Method 'void android.support.v4.content.ContextCompat.<init>()' is inaccessible to class 'com.google.android.gms.iid.zzd' (declaration of 'com.google.android.gms.iid.zzd' appears in /data/app/com.myapp-1/base.apk)

2 thoughts on “C++ Exception in ‘nativeRequireModuleConfig’

  1. i fixed it temporarily by replacing
    compile 'com.google.android.gms:play-services-gcm:+'
    with
    compile ('com.google.android.gms:play-services-gcm:9.0.1') { force = true; }
    in node_modules/react-native-device-info/android/build.gradle file