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

java.lang.VerifyError: Rejecting class com.ypx.imagepicker.activity.crop.MultiImageCropFragment that attempts to sub-type erroneous class com.ypx.imagepicker.activity.PBaseLoaderFragment (declaration of 'com.ypx.imagepicker.activity.crop.MultiImageCropFragment' appears in base.apk!classes24.dex) #146

Open
zhangchao1122 opened this issue Sep 19, 2024 · 0 comments

Comments

@zhangchao1122
Copy link

把imagepicker模块集成进项目,调用ImagePicker.withCrop(RedBookPresenter()),一直报错,有人遇到过吗? java.lang.VerifyError: Rejecting class com.ypx.imagepicker.activity.crop.MultiImageCropFragment that attempts to sub-type erroneous class com.ypx.imagepicker.activity.PBaseLoaderFragment (declaration of 'com.ypx.imagepicker.activity.crop.MultiImageCropFragment' appears in base.apk!classes24.dex)
at com.ypx.imagepicker.builder.CropPickerBuilder.pickWithFragment(CropPickerBuilder.java:234)
at com.ypx.imagepicker.activity.crop.MultiImageCropActivity.setFragment(MultiImageCropActivity.java:94)
at com.ypx.imagepicker.activity.crop.MultiImageCropActivity.onCreate(MultiImageCropActivity.java:85)
at android.app.Activity.performCreate(Activity.java:7224)
at android.app.Activity.performCreate(Activity.java:7213)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2957)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3114)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:113)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:71)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1859)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:201)
at android.app.ActivityThread.main(ActivityThread.java:6831)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:927)
Caused by: java.lang.VerifyError: Verifier rejected class com.ypx.imagepicker.activity.PBaseLoaderFragment: void com.ypx.imagepicker.activity.PBaseLoaderFragment.loadMediaSets() failed to verify: void com.ypx.imagepicker.activity.PBaseLoaderFragment.loadMediaSets(): [0x19] register v3 has type Reference: com.ypx.imagepicker.activity.PBaseLoaderFragment but expected Reference: android.app.Activity
void com.ypx.imagepicker.activity.PBaseLoaderFragment.takePhoto() failed to verify: void com.ypx.imagepicker.activity.PBaseLoaderFragment.takePhoto(): [0x1F] register v4 has type Reference: com.ypx.imagepicker.activity.PBaseLoaderFragment but expected Reference: android.app.Activity
void com.ypx.imagepicker.activity.PBaseLoaderFragment.takeVideo() failed to verify: void com.ypx.imagepicker.activity.PBaseLoaderFragment.takeVideo(): [0x1F] register v8 has type Reference: com.ypx.imagepicker.activity.PBaseLoaderFragment but expected Reference: android.app.Activity (declaration of 'com.ypx.imagepicker.activity.PBaseLoaderFragment' appears in base.apk!classes24.dex)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant