百度定位之Failed to extract native libraries

今天在我导入官方百度定位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


评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值