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

Android App crashing after file selection #668

Closed
Babar-Inaequo opened this issue Jul 11, 2023 · 3 comments
Closed

Android App crashing after file selection #668

Babar-Inaequo opened this issue Jul 11, 2023 · 3 comments

Comments

@Babar-Inaequo
Copy link

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

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

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

E FATAL EXCEPTION: mqt_native_modules
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)

Copy link

github-actions bot commented Jan 8, 2024

👋 @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!

@github-actions github-actions bot closed this as completed Jan 8, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jan 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants