歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux編程 >> Linux編程 >> Android開發中應用程序未安裝解決辦法

Android開發中應用程序未安裝解決辦法

日期:2017/3/1 9:42:43   编辑:Linux編程

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

Copyright © Linux教程網 All Rights Reserved