Closed madiguzel closed 6 years ago
No proguard rule needed. Does it crash or it just not working. Can you check logcat.
On Aug 7, 2017 5:17 AM, "madiguzel" notifications@github.com wrote:
Hi,
Thanks for this useful component. It works in debug mode as expected but i cannot get the blurview work in signed release apk. Is there any configuration for release mode? Any proguard rules? SIGNED RELEASE APK
[image: release] https://user-images.githubusercontent.com/1685245/29007127-8248ded8-7b05-11e7-8783-fb60766de100.jpg DEBUG APK
[image: debug] https://user-images.githubusercontent.com/1685245/29007128-82815970-7b05-11e7-8648-b7694ca8bd4e.jpg
Thanks in advance...
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mmin18/RealtimeBlurView/issues/15, or mute the thread https://github.com/notifications/unsubscribe-auth/AAttUzSZ0u0nnDA95wpomo56BRRawAIDks5sVi2FgaJpZM4Ou2D- .
Hi again,
It doesn't crash but I see lots of error logs in logcat like:
20:40:57.675 11034-11034/? E/RenderScript_jni: Error loading RS jni library: java.lang.UnsatisfiedLinkError: JNI_OnLoad failed on a previous attempt to load "/data/app/com.example.myapp-1/lib/arm64/librsjni.so" 08-08 20:40:57.679 11034-11042/? E/System: Uncaught exception thrown by finalizer 08-08 20:40:57.680 11034-11042/? E/System: android.support.v8.renderscript.RSInvalidStateException: Calling RS with no Context active. at android.support.v8.renderscript.RenderScript.g(RenderScript.java:1225) at android.support.v8.renderscript.RenderScript.d(RenderScript.java:320) at android.support.v8.renderscript.RenderScript.helpDestroy(RenderScript.java:1655) at android.support.v8.renderscript.RenderScript.finalize(RenderScript.java:1689) at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:222) at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:209) at java.lang.Thread.run(Thread.java:761)
Hi again,
I founded the solution. It works perfectly now.
When minifyEnabled is true in gradle file, we need to add the following proguard rule:
-keep class android.support.v8.renderscript.** { *; }
After migration to androidx library can also help you:
-keep class androidx.renderscript.** { *; }
Hi,
Thanks for this useful component. It works in debug mode as expected but i cannot get the blurview work in signed release apk. Is there any configuration for release mode? Any proguard rules?
SIGNED RELEASE APK
DEBUG APK
Thanks in advance...