今天在我导入官方百度定位Demo的时候弹出如下对话框
Installation failed with message INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?
公司测试机还没买回来,因此测试我都是在用模拟器,这种现象一般会发生在模拟器上。
百度很久找到一篇英文论坛,下面我说一下解决办法。
原因:使用了原声库(NDK,Native Lib),这些库的编译目标通常是arm架构的cpu,在x86上运行就会报这样的错误,而我用的虚拟机就是AS自带的
解决方法是,使用arm架构的模拟器。这里我推荐Genymotion模拟器。
传送门
http://blog.csdn.net/u012552275/article/details/52536407