kikoso / android-stackblur

Android StackBlur is a library that can perform a blurry effect on a Bitmap based on a gradient or radius, and return the result. The library is based on the code of Mario Klingemann.
Apache License 2.0
3.59k stars 648 forks source link

NoSuchFieldError #20

Closed robotrory closed 10 years ago

robotrory commented 10 years ago

I've included the StackBlur library in my project but the processRenderScript method doesn't work. When I call it I get a NoSuchField error. I'm not sure whether it helps but in StackBlur/gen/R/raw I can see a value for blur, but under my project /gen/R/raw there are no fields. Maybe it's not being carried through?

Here's the stack trace:

03-24 11:22:38.554: E/AndroidRuntime(6967): FATAL EXCEPTION: Thread-1593
03-24 11:22:38.554: E/AndroidRuntime(6967): Process: com.smithyproductions.infinitracks, PID: 6967
03-24 11:22:38.554: E/AndroidRuntime(6967): java.lang.NoSuchFieldError: com.enrique.stackblur.R$raw.blur
03-24 11:22:38.554: E/AndroidRuntime(6967):     at com.enrique.stackblur.RSBlurProcess.blur(RSBlurProcess.java:29)
03-24 11:22:38.554: E/AndroidRuntime(6967):     at com.enrique.stackblur.StackBlurManager.processRenderScript(StackBlurManager.java:140)
kikoso commented 10 years ago

Hello @Roarster31 ,

Might sound silly, but did you try to build the library first?

Regards

kikoso commented 10 years ago

I am closing this issue. If there is any further comment, please let me know.