原文网址:http://blog.csdn.net/caroline_wendy/article/details/43615361
Android系统已经升级为64位系统,在进行预装(adb push)时,可能会发生64位不兼容的情况,因为没有提前编译64位的so文件。
添加64位的abi支持:
- APP_ABI=all32 is equivalent to APP_ABI=armeabi,armeabi-v7a,x86,mips.
- APP_ABI=all64 is equivalent to APP_ABI=arm64-v8a,x86_64,mips64.
未找到64位的so文件:
- E/AndroidRuntime( 5043): java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/app/ChunyuDoctor_V500_20150123.apk"],nativeLibraryDirectories=[/vendor/lib64, /system/lib64]]] couldn't find "libcytool.so"
- LogSummaryInfo: {apkName, me.chunyu.ChunyuDoctor }{version, 5.0.0.20150126 }{reason, java.lang.UnsatisfiedLinkError: dlopen failed: "/system/lib64/libcytool.so" is 32-bit instead of 64-bit }
参考:http://stackoverflow.com/questions/24538343/ndk-build-for-target-x86-64-results-in-error