android-stackblur icon indicating copy to clipboard operation
android-stackblur copied to clipboard

ndk-build gives error Check that StackBlur/jni/arm64-v8a/librsjni.so exists or that its path is corret

Open siddhpuraamitr opened this issue 9 years ago • 1 comments

For Faster process of Blur Image I want to use below function

StackBlurManager stackBlurManager = new StackBlurManager(bitmapFromGalleryOrCamera); stackBlurManager.processNatively(25);

whenever I use above method .processNatively I am getting following errror java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/packageName-1/base.apk"],nativeLibraryDirectories=[/data/app/[packageName-1/lib/arm, /vendor/lib, /system/lib]]] couldn't find "libblur.so"

So I have decided that I need to compile StackBlur module with NDK

but whenever I compile your StackBlur module with ndk-build I am getting following error


Android NDK: WARNING: APP_PLATFORM android-19 is larger than android:minSdkVersion 8 in /..//..//../StackBlur/AndroidManifest.xml    
Android NDK: ERROR:/..//.../StackBlur/jni/Android.mk:rsjni: LOCAL_SRC_FILES points to a missing file    
Android NDK: Check that /..//..../StackBlur/jni/arm64-v8a/librsjni.so exists  or that its path is corret

Please suggest me what is the issue? what should I need to do to resolve this

siddhpuraamitr avatar Aug 25 '16 08:08 siddhpuraamitr

Hey there @siddhpuraamitr, if you only care about building the native libraries, all you need to do is go into the Manifest of the library and remove sdk information.

If you want to use the libraries precompiled via gradle, here is a solution I have created https://github.com/Commit451/NativeStackBlur

Jawnnypoo avatar Aug 25 '16 14:08 Jawnnypoo