Android Question MultiPhotoPicker crashes when "Pick Photos" button is tapped.

rleiman

Well-Known Member
Licensed User
Longtime User
Greetings,

I compiled and ran the sample app that comes with the MultiPhotoPicker library. When tapping the "Pick Photos" button the app crashes.

Here's a dump of the logs.

All help will be appreciated.

Thanks.

B4X:
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/nileshp/multiphotopicker/photopicker/activity/PickImageActivity;
    at de.donmanfred.MultiPhotoPickerWrapper.startPickerActivity(MultiPhotoPickerWrapper.java:63)
    at b4a.example.multiphotopick.main._button1_click(main.java:418)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:348)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:180)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:176)
    at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
    at android.view.View.performClick(View.java:7333)
    at android.widget.TextView.performClick(TextView.java:14160)
    at android.view.View.performClickInternal(View.java:7299)
    at android.view.View.access$3200(View.java:846)
    at android.view.View$PerformClick.run(View.java:27773)
    at android.os.Handler.handleCallback(Handler.java:873)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:214)
    at android.app.ActivityThread.main(ActivityThread.java:6986)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1445)
Caused by: java.lang.ClassNotFoundException: com.nileshp.multiphotopicker.photopicker.activity.PickImageActivity
    at java.lang.VMClassLoader.findLoadedClass(Native Method)
    at java.lang.ClassLoader.findLoadedClass(ClassLoader.java:738)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:363)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
    ... 23 more
Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/app/AppCompatActivity;
    ... 23 more
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.app.AppCompatActivity" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/b4a.example.multiphotopick-po9fiW_KThMRLBuiTeWwyQ==/base.apk"],nativeLibraryDirectories=[/data/app/b4a.example.multiphotopick-po9fiW_KThMRLBuiTeWwyQ==/lib/arm64, /system/lib64]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
    ... 23 more
 

DonManfred

Expert
Licensed User
Longtime User
Did you run the example as is?

I ran the example and it is working here.

Did you run the jetifier tool?
 
Last edited:
Upvote 0

rleiman

Well-Known Member
Licensed User
Longtime User
Based on the error message you aren't running the jetified version of that library. Make sure that the library is not in the internal libraries folder.
Hi Erel,

I checked the folders and everything looks ok. Could it be something else?

Thanks.
 

Attachments

  • Screenshot 2019-12-16 at 18.36.35.png
    Screenshot 2019-12-16 at 18.36.35.png
    235.3 KB · Views: 305
  • Screenshot 2019-12-16 at 18.33.55.png
    Screenshot 2019-12-16 at 18.33.55.png
    277.5 KB · Views: 301
Last edited:
Upvote 0
Top