赞
踩
问题一:This app only has 32-bit [armeabi-v7a] native libraries. 解决:在app目录下的build.gradle的android结构里加上arm64-v8a,如下: android { ....... defaultConfig{ ndk{ abiFilters 'armeabi-v7a', 'arm64-v8a' //abiFilters 'armeabi', 'armeabi-v7a' } packagingOptions { pickFirst 'lib/armeabi-v7a/libserial_port.so' } } ...... } 问题二:解决完问题一后出现More than one file was found with OS independent path 'lib/arm64-v8a/libserial_port.so' 解决:问题一的解决里 packagingOptions 里添加 pickFirst 'lib/arm64-v8a/libserial_port.so',如下, packagingOptions { pickFirst 'lib/armeabi-v7a/libserial_port.so' pickFirst 'lib/arm64-v8a/libserial_port.so' }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。