react-native-fs icon indicating copy to clipboard operation
react-native-fs copied to clipboard

error in android: RNFSManager tried to override RNFSManager

Open valinaga opened this issue 9 years ago • 5 comments

In android I get this at startup:

java.lang.IllegalStateException: Native module RNFSManager tried to override RNFSManager for module name RNFSManager. If this was your intention, return true from RNFSManager#canOverrideExistingModule()

ver. 1.5.1 and 2.0.1-rc2

Any idea? It works just fine in IOS. Thanks.

valinaga avatar Nov 08 '16 05:11 valinaga

found the issue. RNFS was imported twice in android. probably a glitch from link. now it's ok.

valinaga avatar Nov 09 '16 12:11 valinaga

Ah! I just learn something. Whenever react-native link <package-name> is used it automatically insert the various import and @override ... new <package>() in MainApplication.java.

Good to know.

thomascayne avatar Jan 18 '17 00:01 thomascayne

hi this problem still persists my version is 0.70 can you help me?

kodcubey avatar Mar 31 '23 12:03 kodcubey

i also experience this in react native 0.73.2. any updates?

wisungyo avatar Feb 20 '24 11:02 wisungyo

i also experience this in react native 0.73.2. any updates?

thongle12 avatar Aug 13 '24 08:08 thongle12