500px / 500px-android-blur

Android Blurring View
http://developers.500px.com/2015/03/17/a-blurring-view-for-android.html
MIT License
2.69k stars 326 forks source link

Problem when minifyEnabled=true #14

Closed heartbeep closed 8 years ago

heartbeep commented 8 years ago

When I use proguard with minifyEnabled option I get this fatal crash on launch:

java.lang.RuntimeException: Unable to start activity ComponentInfo{...}: android.view.InflateException: Binary XML file line #67: Error inflating class com.fivehundredpx.android.blur.BlurringView

But with minifyEnabled turned off, it works fine.

Are there any proguard rules I need to add?

AndrazP commented 8 years ago

Add:

-keep class android.support.v8.renderscript.** { *; }

to your proguard file.

heartbeep commented 8 years ago

Thank you, that works