Welcome 微信登录
编程资源 图片资源库 蚂蚁家优选 PDF转换器

首页 / 操作系统 / Linux / Android开发中应用程序未安装解决办法

Android发布程序安装时候出现“应用程序未安装”提示。
 
调试环境下安装提示“Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY".
 
测试后后发现原因如下:
 
安装出现问题的手机大多为国内行货手机,根据国家规定国产手机不允许安装google play service等应用。而我的软件中含有V2的google map,需要调用google play service,因此出现以上错误。
 
解决办法就是不用google map以及其他需要用到google play service 的功能。毕竟国内不少机器不兼容。调试过程中出现了”INSTALL_FAILED_INSUFFICIENT_STORAGE“错误。跟手机内存有关系。加入” android:installLocation="preferExternal"“即可。如下:
 
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
   package="com.XX.XX"
   android:versionCode="2"
   android:versionName="1.1"
   android:installLocation="preferExternal">更多Android相关信息见Android 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=11本文永久更新链接地址:http://www.linuxidc.com/Linux/2014-06/103520.htm