wasabeef/Blurry

Unexpected Crash: NoSuchMethodError(No virtual method getAsync)

poropi opened this issue · 0 comments

Bug Reporting

Steps to Reproduce

Execute the following code.

                            Blurry.with(context)
                                    .radius(50)
                                    .sampling(8)
                                    .color(Color.argb(77,255,255,255))
                                    .capture(imageView.image)
                                    .getAsync { blurryImg ->
                                        imageBlurCache[url] = BitmapDrawable(context.resources, blurryImg)
                                        imageView.image.setImageBitmap(blurryImg)
                                        imageView.image.visibility = View.VISIBLE
                                    }

Actual Results (include screenshots)

     Caused by: java.lang.NoSuchMethodError: No virtual method getAsync(Ljp/wasabeef/blurry/BlurTask$Callback;)V in class Ljp/wasabeef/blurry/Blurry$ImageComposer; or its super classes (declaration of 'jp.wasabeef.blurry.Blurry$ImageComposer' appears in /data/data/com.hoge.app.debug/code_cache/.overlay/base.apk/classes4.dex)
        at com.hoge.app.user.detail.UserDetailView$UserImageAdapter$instantiateItem$$inlined$run$lambda$1.invoke(UserDetailView.kt:437)
        at com.hoge.app.user.detail.UserDetailView$UserImageAdapter$instantiateItem$$inlined$run$lambda$1.invoke(UserDetailView.kt:364)
        at com.hoge.app.common.DatabindingHelperKt$bindImageUrl$1.onResourceReady(DatabindingHelper.kt:62)
        at com.hoge.app.common.DatabindingHelperKt$bindImageUrl$1.onResourceReady(DatabindingHelper.kt:56)
        at com.bumptech.glide.request.SingleRequest.onResourceReady(SingleRequest.java:622)
        at com.bumptech.glide.request.SingleRequest.onResourceReady(SingleRequest.java:575)
        at com.bumptech.glide.load.engine.EngineJob.callCallbackOnResourceReady(EngineJob.java:158)
        at com.bumptech.glide.load.engine.EngineJob$CallResourceReady.run(EngineJob.java:424) 
        at android.os.Handler.handleCallback(Handler.java:938) 
        at android.os.Handler.dispatchMessage(Handler.java:99) 
        at android.os.Looper.loop(Looper.java:223) 
        at android.app.ActivityThread.main(ActivityThread.java:7664) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947) 

Expected Results (include screenshots)

Not to crash.

OS details

  • Device:Pixel4
  • OS:11.0.0

Etc

It was occurred in 4.0.0.