-
[react-native] Native module RNDeviceModule tried to override RNDeviceModule for module name RNDeviceInfojavascript/react-native 2018. 12. 9. 22:36
[react-native Trouble Shooting]
Problem
> 안드로이드 빌드할 때 다음 에러가 뜸123456789Fatal Exception: java.lang.IllegalStateException: Native module RNDeviceModule tried to override RNDeviceModule for module name RNDeviceInfo. If this was your intention, set canOverrideExistingModule=trueat 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)cs Solution
> MainApplication.java의 protected List<ReactPackage> getPackages() 부분에서 RNDeviceModule이 두 번 들어있을 것이다.'javascript > react-native' 카테고리의 다른 글
[react-native] iOS 빌드 에러: Duplicate Module Name: react-name (0) 2018.12.09 [react-native] 안드로이드 signed apk 만드는 방법 (안드로이드 배포 막바지 단계) (2) 2018.12.09 [react-native] 파이어베이스 관련 안드로이드 에러 (0) 2018.12.09 [react-native] 안드로이드 can’t not find Symbol 에러 (JSC 업데이트 방법) (2) 2018.12.09 [react-native] 안드로이드 빌드 에러 Execution failed for task ':app:processReleaseResources'. (0) 2018.12.09 댓글