Manabu-GT / EtsyBlur

EtsyBlur is an Android library that allows developers to easily add a glass-like blur effect implemented in the Etsy app.
Apache License 2.0
756 stars 150 forks source link

Failed resolution of: Landroidx/renderscript/RenderScript; #40

Open dertefter opened 7 months ago

dertefter commented 7 months ago

In Activity Class:

onCreate(){ ... binding.blurringView?.blurredView(binding.navHostFragment) }

in layout: <com.ms_square.etsyblur.BlurringView android:id="@id/blurring_view" android:layout_width="match_parent" android:layout_height="match_parent"> </com.ms_square.etsyblur.BlurringView>

Stacktrace: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/renderscript/RenderScript; at com.ms_square.etsyblur.RenderScriptBlur.isAvailable(RenderScriptBlur.java:51) at com.ms_square.etsyblur.Blur.(Blur.java:21) at com.ms_square.etsyblur.BlurringView.onAttachedToWindow(BlurringView.java:98) at android.view.View.dispatchAttachedToWindow(View.java:21991) at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3500) at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3500) at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3500) at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3500) at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3500) at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3500) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3198) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2650) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:9526) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1343) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1352) at android.view.Choreographer.doCallbacks(Choreographer.java:952) at android.view.Choreographer.doFrame(Choreographer.java:882) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1326) at android.os.Handler.handleCallback(Handler.java:958) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:205) at android.os.Looper.loop(Looper.java:294) at android.app.ActivityThread.main(ActivityThread.java:8248) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)