react-native-documents / document-picker

Document Picker for React Native
https://react-native-documents.github.io/
MIT License
1.33k stars 434 forks source link

Android App crashing after file selection #668

Closed Babar-Inaequo closed 5 months ago

Babar-Inaequo commented 12 months ago

Getting this error after file selection.

java.lang.NoSuchMethodError: No virtual method getExceptionHandler()Lcom/facebook/react/bridge/JSExceptionHandler; in class Lcom/facebook/react/bridge/ReactContext; or its super classes (declaration of 'com.facebook.react.bridge.ReactContext'

react-native: "0.66.3" react-native-document-picker: "8.1.3"

Versions are mention above for react native and react native document picker.

Thanks

22424036 commented 12 months ago

Open folder android in Android studio go to File -> Project Structure in Dependencies, find module react-native-document-picker, and edit react-native:+ to react-native:0.66.3 Screenshot 2023-07-12 at 14 33 19

raghsahu commented 10 months ago

I also got the same issue in android, when select the attachment then app crashed.

E FATAL EXCEPTION: mqt_nativemodules Process: com.appname, PID: 15724 com.facebook.react.common.JavascriptException: RangeError: Failed to construct 'Response': The status provided (0) is outside the range [200, 599]., stack: @110:6945

@110:8729 @87:1256 k@87:499 callTimers@87:2652 value@39:3556 @39:673 value@39:2503 value@39:645 value@-1 at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(ExceptionsManagerModule.java:83) at java.lang.reflect.Method.invoke(Native Method) at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372) at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:188) at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:313) at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:226) at java.lang.Thread.run(Thread.java:1012)
github-actions[bot] commented 5 months ago

:wave: @Babar-Inaequo, sorry you're having an issue. This issue is being closed because it does not provide all information required by the issue template. As the issue template explains, we require that you provide a runnable example that reproduces your issue and your environment information. This means you need to provide a code snippet that we can copy-paste into an empty project and see the error ourselves, or provide a git repository with the issue. The reason is that maintainers do not have time to try reproduce bugs themselves. Please try to minimize the superfluous code and focus only on reproducing the bug. Please create a new issue with this and we'll be happy to review it!