Android JNI is not packaged in APK

I use my own Android Renderscript library, but *.so files are not packaged into my APK when exporting it.

The application works fine when I run it through tt Eclipse , but this is clearly a problem with the package with the APK file:

 Caused by: android.support.v8.renderscript.r: Error loading RS jni library: java.lang.UnsatisfiedLinkError: unknown failure 

What should I do to add *.so files to the APK ?

+7
android jni renderscript
source share
1 answer

The solution was to add this line to the ProGuard file

 -keep class android.support.v8.renderscript.** { *; } 
+11
source share

All Articles