React-native-device-info: Native module RNDeviceModule tried to override RNDeviceModule for module name RNDeviceInfo

Created on 9 Oct 2017  路  4Comments  路  Source: react-native-device-info/react-native-device-info

I've got this error on Fabric Crashlytics
android 6

using the latest version of this package

Fatal Exception: java.lang.IllegalStateException: Native module RNDeviceModule tried to override RNDeviceModule for module name RNDeviceInfo. If this was your intention, set canOverrideExistingModule=true
       at com.facebook.react.NativeModuleRegistryBuilder.addNativeModule(NativeModuleRegistryBuilder.java:121)
       at com.facebook.react.NativeModuleRegistryBuilder.processPackage(NativeModuleRegistryBuilder.java:109)
       at com.facebook.react.ReactInstanceManager.processPackage(ReactInstanceManager.java:1050)
       at com.facebook.react.ReactInstanceManager.processPackages(ReactInstanceManager.java:1021)
       at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:959)
       at com.facebook.react.ReactInstanceManager.access$600(ReactInstanceManager.java:109)
       at com.facebook.react.ReactInstanceManager$4.run(ReactInstanceManager.java:802)
       at java.lang.Thread.run(Thread.java:818)

Most helpful comment

check your MainApplication.java, in particular protected List<ReactPackage> getPackages(); the RNDeviceModule is probably twice in the list

All 4 comments

check your MainApplication.java, in particular protected List<ReactPackage> getPackages(); the RNDeviceModule is probably twice in the list

great!

Thanks buddy

Great I have same problem, finally solved .. Thank You

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dozel picture dozel  路  4Comments

truckhiem picture truckhiem  路  4Comments

ParryGao picture ParryGao  路  3Comments

StevePotter picture StevePotter  路  5Comments

andreystarkov picture andreystarkov  路  5Comments