Skip to content
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 · 4 comments

Comments

@sibelius
Copy link
Member

@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
Copy link
Member

@vonovak 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
Copy link

@kyungjoongo kyungjoongo commented Feb 28, 2018

great!

@jakeOliv
Copy link

@jakeOliv jakeOliv commented May 23, 2018

Thanks buddy

@fajartc02
Copy link

@fajartc02 fajartc02 commented Feb 21, 2019

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

@react-native-community react-native-community locked and limited conversation to collaborators Feb 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants
You can’t perform that action at this time.