New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native module RNDeviceModule tried to override RNDeviceModule for module name RNDeviceInfo #243

Closed
sibelius opened this Issue Oct 9, 2017 · 3 comments

Comments

Projects
None yet
5 participants
@sibelius

sibelius commented Oct 9, 2017

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)
@vonovak

This comment has been minimized.

vonovak commented Oct 15, 2017

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

@machour machour closed this Feb 14, 2018

@kyungjoongo

This comment has been minimized.

kyungjoongo commented Feb 28, 2018

great!

@jakeOliv

This comment has been minimized.

jakeOliv commented May 23, 2018

Thanks buddy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment