标签:mytra android so unsatisfiedlinkerror gradle
本文地址:http://blog.csdn.net/caroline_wendy
java.lang.UnsatisfiedLinkError: Couldn‘t load weibosdkcore from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/xxx.apk"],nativeLibraryDirectories=[/data/app-lib/xxx-2, /vendor/lib, /system/lib]]]: findLibrary returned null
-lib --armeabi ---xxx.so命令:
jar cvf xxx_cpu.jar ./lib再加载到应用中,即可;
//noinspection all task copyNativeLibs(type: Copy) { // third party lib so from(new File(projectDir, ‘libs‘)) { include ‘armeabi/*.so‘ } into new File(buildDir, ‘native-libs‘) } tasks.withType(JavaCompile) { compileTask -> //noinspection all compileTask.dependsOn copyNativeLibs } //noinspection all tasks.withType(com.android.build.gradle.tasks.PackageApplication) { pkgTask -> pkgTask.jniFolders = new HashSet<File>() pkgTask.jniFolders.add(new File(buildDir, ‘native-libs‘)) }
标签:mytra android so unsatisfiedlinkerror gradle
原文地址:http://blog.csdn.net/caroline_wendy/article/details/42246015