esafirm / android-image-picker

Image Picker for Android 🤖
MIT License
1.11k stars 328 forks source link

Class not found when unmarshalling #208

Open mahmoudshabat opened 5 years ago

mahmoudshabat commented 5 years ago

in Version below 22 , there some bugs when load multi images

E/Parcel: Class not found when unmarshalling: com.esafirm.imagepicker.features.ImagePickerConfig java.lang.ClassNotFoundException: com.esafirm.imagepicker.features.ImagePickerConfig at java.lang.Class.classForName(Native Method) at java.lang.Class.forName(Class.java:324) at android.os.Parcel.readParcelableCreator(Parcel.java:2404) at android.os.Parcel.readParcelable(Parcel.java:2358) at android.os.Parcel.readValue(Parcel.java:2264) at android.os.Parcel.readArrayMapInternal(Parcel.java:2614) at android.os.BaseBundle.unparcel(BaseBundle.java:221) at android.os.BaseBundle.getString(BaseBundle.java:920) at android.content.Intent.getStringExtra(Intent.java:6221) at com.android.server.am.ActivityStackSupervisor.startActivityLocked(ActivityStackSupervisor.java:2752) at com.android.server.am.ActivityStackSupervisor.startActivityMayWait(ActivityStackSupervisor.java:2210) at com.android.server.am.ActivityManagerService.startActivityAsUser(ActivityManagerService.java:6655) at com.android.server.am.ActivityManagerService.startActivity(ActivityManagerService.java:6389) at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:174) at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:4208) at android.os.Binder.execTransact(Binder.java:453) Caused by: java.lang.ClassNotFoundException: com.esafirm.imagepicker.features.ImagePickerConfig at java.lang.Class.classForName(Native Method) at java.lang.BootClassLoader.findClass(ClassLoader.java:781) at java.lang.BootClassLoader.loadClass(ClassLoader.java:841) at java.lang.ClassLoader.loadClass(ClassLoader.java:469) at java.lang.Class.classForName(Native Method)  at java.lang.Class.forName(Class.java:324)  at android.os.Parcel.readParcelableCreator(Parcel.java:2404)  at android.os.Parcel.readParcelable(Parcel.java:2358)  at android.os.Parcel.readValue(Parcel.java:2264)  at android.os.Parcel.readArrayMapInternal(Parcel.java:2614)  at android.os.BaseBundle.unparcel(BaseBundle.java:221)  at android.os.BaseBundle.getString(BaseBundle.java:920)  at android.content.Intent.getStringExtra(Intent.java:6221)  at com.android.server.am.ActivityStackSupervisor.startActivityLocked(ActivityStackSupervisor.java:2752)  at com.android.server.am.ActivityStackSupervisor.startActivityMayWait(ActivityStackSupervisor.java:2210)  at com.android.server.am.ActivityManagerService.startActivityAsUser(ActivityManagerService.java:6655)  at com.android.server.am.ActivityManagerService.startActivity(ActivityManagerService.java:6389)  at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:174)  at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:4208)  at android.os.Binder.execTransact(Binder.java:453) 

Specifications

esafirm commented 5 years ago

Have you tried version 2.0.0?

https://github.com/esafirm/android-image-picker/releases/tag/2.0.0

immustafa commented 5 years ago

Hi, I tried with 2.0.0 but getting same error on logcat like this;

E/Parcel: Class not found when unmarshalling: com.esafirm.imagepicker.features.ImagePickerConfig java.lang.ClassNotFoundException: com.esafirm.imagepicker.features.ImagePickerConfig at java.lang.Class.classForName(Native Method) at java.lang.Class.forName(Class.java:324) at android.os.Parcel.readParcelableCreator(Parcel.java:2404) at android.os.Parcel.readParcelable(Parcel.java:2358) at android.os.Parcel.readValue(Parcel.java:2264) at android.os.Parcel.readArrayMapInternal(Parcel.java:2614) at android.os.BaseBundle.unparcel(BaseBundle.java:221) at android.os.BaseBundle.getString(BaseBundle.java:920) at android.content.Intent.getStringExtra(Intent.java:6221) at com.android.server.am.ActivityStackSupervisor.startActivityLocked(ActivityStackSupervisor.java:2752) at com.android.server.am.ActivityStackSupervisor.startActivityMayWait(ActivityStackSupervisor.java:2210) at com.android.server.am.ActivityManagerService.startActivityAsUser(ActivityManagerService.java:6656) at com.android.server.am.ActivityManagerService.startActivity(ActivityManagerService.java:6390) at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:174) at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:4209) at android.os.Binder.execTransact(Binder.java:453) Caused by: java.lang.ClassNotFoundException: com.esafirm.imagepicker.features.ImagePickerConfig at java.lang.Class.classForName(Native Method) at java.lang.BootClassLoader.findClass(ClassLoader.java:781) at java.lang.BootClassLoader.loadClass(ClassLoader.java:841) at java.lang.ClassLoader.loadClass(ClassLoader.java:469) at java.lang.Class.classForName(Native Method)  at java.lang.Class.forName(Class.java:324)  at android.os.Parcel.readParcelableCreator(Parcel.java:2404)  at android.os.Parcel.readParcelable(Parcel.java:2358)  at android.os.Parcel.readValue(Parcel.java:2264)  at android.os.Parcel.readArrayMapInternal(Parcel.java:2614)  at android.os.BaseBundle.unparcel(BaseBundle.java:221)  at android.os.BaseBundle.getString(BaseBundle.java:920)  at android.content.Intent.getStringExtra(Intent.java:6221)  at com.android.server.am.ActivityStackSupervisor.startActivityLocked(ActivityStackSupervisor.java:2752)  at com.android.server.am.ActivityStackSupervisor.startActivityMayWait(ActivityStackSupervisor.java:2210)  at com.android.server.am.ActivityManagerService.startActivityAsUser(ActivityManagerService.java:6656)  at com.android.server.am.ActivityManagerService.startActivity(ActivityManagerService.java:6390)  at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:174)  at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:4209)  at android.os.Binder.execTransact(Binder.java:453)  Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available

but it is working, I cant understand

version : 2.0.0 OS : 23

esafirm commented 5 years ago

but it is working, I cant understand

So this happen but the app didn't crash?

Are you running things with minify enabled?

mahmoudshabat commented 5 years ago

but it is working, I cant understand

So this happen but the app didn't crash?

Are you running things with minify enabled?

HiteshDevganiya commented 5 years ago

I am using implementation 'com.github.esafirm.android-image-picker:imagepicker:2.2.0' and still facing this issue.

ArunkumarAndanshetti commented 4 years ago

I am facing issue in fragment so please rectify it

7alma9 commented 4 years ago

facing same issue and in onActivityResult getting less item then selected

yanivshaked commented 3 years ago

Any update on this issue? When running debug mode (simple flutter run), there is no issue. The gallery is opened and I can select an image. When running release mode (flutter run --release), I am getting that error message on logcat. Note it doesn't happen on all devices, but I have seen it on Android S10.

tamimattafi commented 3 years ago

Happens also on Android 11 Samsung S21 Ultra.

LoveWFan commented 3 years ago

Happens also on Android 11 Samsung Gallery S10 and crash