Crash on Android 10
See original GitHub issueMy clients who are using android 10, are facing the following issue:
java.lang.IllegalArgumentException:
at On.onWrite (PG:27)
at android.print.PdfConverter$1.onPageFinished (PdfConverter.java:71)
at e6.b (PG:2)
at on.handleMessage (PG:63)
at android.os.Handler.dispatchMessage (Handler.java:107)
at android.os.Looper.loop (Looper.java:237)
at android.app.ActivityThread.main (ActivityThread.java:7770)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1047)
After seeing this trace, the first thing came to my mind that maybe the user did not allow storage permission. I double checked with them and found out that the storage permission was enabled. However, when the app is trying to generate PDF, it crashes.
Any ideas? Thank you
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (5 by maintainers)
Top Results From Across the Web
Why do my apps keep crashing on Android, How to fix it
The easiest way to fix an app that keeps crashing on your Android smartphone is to simply force stop it and open it...
Read more >How To Fix Note10 Phone Crashing After Android 10 Update
Check for poor signal issue · Fix Phone crashing on Android 10 by rebooting the device · Troubleshoot the Phone app · Check...
Read more >Why Do My Apps Keep Crashing on Android? - Avast
How to stop apps from crashing. Hanging or crashing apps is one of the most annoying Android phone problems. Here are ten different...
Read more >How To FIX Apps Crashing On Android! (2022) - YouTube
How To FIX Apps Crashing On Android ! (2022). 4K views 6 months ago ... Samsung Galaxy S10 In 2021: https://www.youtube.com/watch?v=mrB8H.
Read more >Application crashes on Android 10? - Stack Overflow
But suddenly within the past two weeks, users have reported application crashing while using it. All the crashes are for Android 10 users....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
After searching through github repo fork network graph, I found this fork works fine: https://github.com/jdaoliveira/react-native-html-to-pdf For anybody who’s suffering the android 10 upgrade, you can uninstall version 0.8.0 and try
npm install https://github.com/jdaoliveira/react-native-html-to-pdf.git
i changed sdk to sdk 29, and added this line: PermissionsAndroid.request(PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE); to index.