简体   繁体   English

获取错误msg安装失败缺少共享库

[英]getting error msg install failed missing shared library

i have made one application which uses google maps APi,i am using titanium 1.2.2 and mobile sdk 1.5.1 for android,wenever i am trying to run the app on emulator,console shows an error 我已经制作了一个应用程序,使用谷歌地图APi,我使用钛1.2.2和移动sdk 1.5.1为Android,我们每当我试图在模拟器上运行应用程序,控制台显示错误

[INSTALL_FAILED_MISSING_SHARED_LIBRARY] [INSTALL_FAILED_MISSING_SHARED_LIBRARY]

what does this error means and how to fix it?? 这个错误意味着什么以及如何解决它?

I had the same issue. 我遇到过同样的问题。 Make sure you have changed the target from Android### to Google APIs in the AVD Manager. 确保您已在AVD Manager中将目标从Android ###更改为Google API。

  1. Open Android SDK Manager 打开Android SDK Manager
  2. Select Tools -> Manage AVDs 选择工具 - >管理AVD
  3. Select a/the virtual device and click edit 选择一个/虚拟设备,然后单击编辑
  4. In the target Select Google APIs... 在目标中选择Google API ...

If this target does not exist in the list, you need to install the Google APIs for the Level you require. 如果列表中不存在此目标,则需要安装所需级别的Google API。

This will appear in the check list under the desired Level in the Android SDK Manager. 这将显示在Android SDK Manager中所需级别下的检查列表中。 Once this is installed (go grab yourself a coffee, it can take some time), repeat steps 1 - 4. 一旦安装完毕(自己拿一杯咖啡,可能需要一些时间),重复步骤1 - 4。

You can add android:required="false" flag to your manifest file and the application should be able to start. 您可以将android:required =“false”标志添加到清单文件中,应用程序应该能够启动。

<uses-library
        android:name="com.google.android.maps"
        android:required="false"/>

Then you have to make sure to protect your code from throwing an exception in places where you need it. 然后,您必须确保保护您的代码不会在您需要的地方抛出异常。 You can try something like this to check if library is present: 您可以尝试这样的方法来检查库是否存在:

Class.forName("com.google.android.maps");

run android.exe or android.sh utility this will bring up the program to install android SDk. 运行android.exe或android.sh实用程序这将调出安装android SDk的程序。 Go to third party add-ons and select Google Api's. 转到第三方加载项并选择Google Api。 After they have been deployed/installed. 部署/安装后。 Please make sure to re-start adb. 请确保重新启动adb。 If you are prompted for a restart of adb. 如果系统提示您重新启动adb。 Please say yes. 请说是。

This happens when your application requires a library that you either haven't included or your device doesn't have it. 当您的应用程序需要您未包含的库或您的设备没有它时,就会发生这种情况。

Make sure you're using the Google API for Google Maps. 确保您使用Google API for Google Maps。

You have to add 你必须添加

<uses-library android:name="com.google.android.maps" />

between the <application> </application> <application> </application>

Tags of the Manifest. 清单的标签。

The usual suggestion to ensure you are running against a Google APIs android SDK is correct. 通常建议确保您运行Google API android SDK是正确的。

However, there is also a bug if you are using Titanium Studio whereby updating the SDK version in Titanium does not update the SDK in the actual android AVD. 但是,如果您使用Titanium Studio也存在一个错误,即在Titanium中更新SDK版本不会更新实际的Android AVD中的SDK。 You will need to open the Android SDK Manager (SDK Manager.exe or SDK Setup.exe), select "Virtual Devices" on the left and then edit all appropriate devices to set their 'Target' to the desired SDK. 您需要打开Android SDK Manager(SDK Manager.exe或SDK Setup.exe),选择左侧的“虚拟设备”,然后编辑所有适当的设备,将其“目标”设置为所需的SDK。

I also came across this same problem and followed @CraigS steps but it didnt help.I was working on the emulator. 我也遇到了同样的问题,并遵循@CraigS步骤,但它没有帮助。我正在模拟器上工作。

Then i tried uninstalling the app from the emulator and running the project again. 然后我尝试从模拟器卸载应用程序并再次运行该项目。 It installed successfully. 它安装成功。 Just try this also if CraigS method doesn't help. 如果CraigS方法没有帮助,也试试这个。 :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 出现错误“安装错误:INSTALL_FAILED_MISSING_SHARED_LIBRARY” - Getting Error “Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY” 升级到Google地图版本2后,出现INSTALL_FAILED_MISSING_SHARED_LIBRARY错误 - Getting INSTALL_FAILED_MISSING_SHARED_LIBRARY error after upgrading to google maps version 2 “安装错误:INSTALL_FAILED_MISSING_SHARED_LIBRARY” - “Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY” 安装错误:INSTALL_FAILED_MISSING_SHARED_LIBRARY:智能手表应用 - Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY : smartwatch app 安装错误:Android 2.3.4上的INSTALL_FAILED_MISSING_SHARED_LIBRARY - Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY on android 2.3.4 安装错误:INSTALL_FAILED_MISSING_SHARED_LIBRARY - Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY 安装错误:Kindle fire上的INSTALL_FAILED_MISSING_SHARED_LIBRARY - Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY on Kindle fire Android Maps:安装错误:INSTALL_FAILED_MISSING_SHARED_LIBRARY - Android Maps: Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY ADK - USB - 安装错误:INSTALL_FAILED_MISSING_SHARED_LIBRARY - ADK - USB - Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY Genymotion仿真器:安装错误:INSTALL_FAILED_MISSING_SHARED_LIBRARY - Genymotion Emulator : Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM