本文共 659 字,大约阅读时间需要 2 分钟。
Android Studio
"nativeLibraryDirectories=[/data/app/com.lukouapp-1/lib/arm64, /vendor/lib64, /system/lib64]]] couldn't find "libxxxx.so"
问题原因:64位机器默认去查找arm64-v8a目录下是否有合适的64位库,如果没有则回去libs下查找32位的库,而fresco的draw-pipeline太完善了考虑了64位的机器所以他的arm64-v8a下有so库,
对应的系统就创建了lib64的文件,而不再去找32位的库。
解决方案:
Edit your build.gradle file as follows: android { // rest of your app's logic splits { abi { enable true reset() include 'x86', 'x86_64', 'arm64-v8a', 'armeabi-v7a', 'armeabi' universalApk false } } } (*)注意上面的红色部分要删除掉最后看起来是这样:
android { // rest of your app's logic splits { abi { enable true reset() include 'x86', 'x86_64', 'armeabi-v7a', 'armeabi' universalApk false } } }
转载地址:http://kscfm.baihongyu.com/