如何在Android Studio中导入两个jni模块?

时间:2016-08-04 01:43:38

标签: android android-ndk java-native-interface

android {
defaultConfig {
    ndk {
        moduleName "p7zip"
        abiFilters "armeabi", "armeabi-v7a"
    }
    ndk {
        moduleName "CryptUtils-jni"
        abiFilters "armeabi", "armeabi-v7a"
    }
}

}

它给出了错误消息“引起:java.lang.UnsatisfiedLinkError:无法从loader dalvik.system.PathClassLoader加载CryptUtils-jni [dexPath = / data / app / com.pncmicros.banksia.mediaplayer.client -2.apk,libraryPath = / data / app-lib / com.pncmicros.banksia.mediaplayer.client-2]:findLibrary返回null“ 我就像下面的jni文件夹:

enter image description here

Android.mk文件写得像这样:

include $(call all-subdir-makefiles)

Android.mk文件夹“CryptUtils” https://dl.dropboxusercontent.com/u/9927654/CryptUtils-Android.mk

enter image description here

Android.mk文件夹“p7zip” https://dl.dropboxusercontent.com/u/9927654/p7zip-Android.mk

enter image description here

enter image description here

0 个答案:

没有答案
相关问题