CameraKit / blurkit-android

The missing Android blurring library. Fast blur-behind layout that parallels iOS.
MIT License
3.72k stars 309 forks source link

Error inflating Blurkit #32

Closed bryan-ibrahim closed 5 years ago

bryan-ibrahim commented 6 years ago

I'm getting the following error trying to use this library: Error inflating class com.flurgle.blurkit.BlurLayout

Any way around that? Thanks in advance

ValdZX commented 6 years ago

If you use 'com.wonderkiln:blurkit:1.0.0' change: com.flurgle.blurkit.BlurLayout -> com.wonderkiln.blurkit.BlurLayout

supermoe92 commented 6 years ago

@bryan-ibrahim Did you add these lines in the defaultConfig section of the (app) build.gradle file?

renderscriptTargetApi 24 renderscriptSupportModeEnabled true

MikiSQV commented 5 years ago

I am getting same error.

In my .xml I am using: com.wonderkiln.blurkit.BlurLayout

I have added in defaultConfig of (app) build.gradle following required lines: renderscriptTargetApi 24 renderscriptSupportModeEnabled true

Any solutions? Thanks in advance

xrubioj commented 5 years ago

The issue was that:

renderscriptTargetApi 24
renderscriptSupportModeEnabled true

was added to a submodule. Moving it to the main module made it work. Also, we changed the 24 to have the same value as compileSdkVersion.

AlvaroFalcon commented 5 years ago

I'm getting same error and none of the answers works for me, any solution? thanks!

emersoncloud commented 5 years ago

Hi @AlvaroFalcon we've just updated to v1.0.0. You can see the implementation details in the README. We've had some issues getting the library into JCenter, so until those are resolved this repository line is needed in the app level build.gradle

repositories {
    maven {
        url  "https://camerakit.bintray.com/other" 
    }
}

Everything else in the README still applies. Let me know if you run into any more issues!