question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Android] Keeps Crashing When Pressing Photo on CameraRoll

See original GitHub issue

I have pressed on the photo then my app crashes.

image

Logs

AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/yalantis/ucrop/UCrop$Options;
AndroidRuntime:        at com.luck.picture.lib.PictureSelector.openGallery(PictureSelector.java:71)
AndroidRuntime:        at com.reactnativemultipleimagepicker.MultipleImagePickerModule.openPicker(MultipleImagePickerModule.kt:52)
AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
AndroidRuntime:        at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
AndroidRuntime:        at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:151)
AndroidRuntime:        at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
AndroidRuntime:        at android.os.Handler.handleCallback(Handler.java:938)
AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:99)
AndroidRuntime:        at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27
)
AndroidRuntime:        at android.os.Looper.loop(Looper.java:223)
AndroidRuntime:        at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:226)
AndroidRuntime:        at java.lang.Thread.run(Thread.java:923)
AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.yalantis.ucrop.UCrop$Options" on path: DexPathLis
t[[zip file "/data/app/~~vqM-cME_je1c7s0seLooqQ==/com.example-Md21MKbEL7n4eeYER9lF2g==/base.apk"],nativeLibraryDirectories=[/data/app/~~vqM-cME_je1c7s0seLo
oqQ==/com.example-Md21MKbEL7n4eeYER9lF2g==/lib/x86_64, /data/app/~~vqM-cME_je1c7s0seLooqQ==/com.example-Md21MKbEL7n4eeYER9lF2g==/base.apk!/lib/x
86_64, /system/lib64, /system_ext/lib64]]
AndroidRuntime:        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:207)
AndroidRuntime:        at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
AndroidRuntime:        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
AndroidRuntime:        ... 12 more
ActivityTaskManager:   Force finishing activity com.example/com.luck.picture.lib.PicturePreviewActivity
DropBoxManagerService: add tag=data_app_crash isTagEnabled=true flags=0x2
goldfish-address-space: claimShared: Ask to claim region [0x3e1b0a000 0x3e201a000]
ActivityTaskManager:   Force finishing activity

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Imtayazcommented, Sep 10, 2021

Yes ! I do have same issue with iOS and Android - Emulator

0reactions
baronhacommented, Sep 21, 2021

@Hi guys. Check last version(0.4.5). If this is still happening, please leave a comment below. There are some small changes in the setup for Android. Check README.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Top 5 Ways to Fix Photos App Keeps Crashing on iOS 16
Solution 1: Reboot Your iPhone to Fix Crash · Solution 2: Quit and Re-Launch the Photos App · Solution 3: Delete Recent Photos...
Read more >
Stock camera app crashes when clicking on gallery button ...
What should happen: No crash, obviously. Open the default gallery app if set, ask if not set. This works fine with OpenCamera. Additional...
Read more >
Android app crashes and then restarts on launching camera to ...
In Android, taking a photo restarts the app without showing any error, however picking photos from gallery works fine.
Read more >
5 Fixes to Google Photos Keeps Crashing on Android/iPhone ...
Method 1. Restart your phone or PC ... Turn off the phone or computer in the normal steps, and then turn it back...
Read more >
How to Fix Crashing Apps on an iPhone or Android?
10 Solutions to fix App Crashes and Keep Apps Running: For Apple iPhone, Samsung Galaxy, LG, Lenovo and Sony Xperia smartphones. If you've...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found