itinance / react-native-fs

Native filesystem access for react-native
MIT License
4.96k stars 985 forks source link

error in android: RNFSManager tried to override RNFSManager #202

Open valinaga opened 8 years ago

valinaga commented 8 years ago

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 commented 8 years ago

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

thomascayne commented 7 years ago

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.

kodcubey commented 1 year ago

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

wisungyo commented 8 months ago

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

thongle12 commented 3 months ago

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