【问题标题】:Android - Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY] Installation failed with the following output: pkg: /data/local/tmp/Package.apkAndroid - 失败 [INSTALL_FAILED_MISSING_SHARED_LIBRARY] 安装失败,输出如下: pkg: /data/local/tmp/Package.apk
【发布时间】:2015-05-28 08:29:45
【问题描述】:

我在尝试使用 Unity5 在我的 Android 设备上构建和运行时收到此错误消息。它与谷歌API问题有关吗?此项目所需的所有库。

Installation failed with the following output:
    pkg: /data/local/tmp/Package.apk
Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]
5801 KB/s (19486779 bytes in 3.280s)

UnityEditor.HostView:OnGUI()

我不知道我的 AndroidManifes.xml 是否可以,到目前为止完全没有问题。

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:largeHeap="true" android:theme="@android:style/Theme.NoTitleBar" android:versionCode="13" android:versionName="1.13" package="com.projecttango.experiments.augmentedreality" android:installLocation="preferExternal">
  <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" android:xlargeScreens="true" />
  <uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
  <uses-permission android:name="android.permission.CAMERA" />
  <uses-permission android:name="android.permission.INTERNET" />
  <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
  <application android:icon="@drawable/app_icon" android:label="@string/app_name" android:debuggable="false" android:isGame="true" android:banner="@drawable/app_banner">
    <activity android:name="com.projecttango.permissionrequester.RequestManagerActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar">
    </activity>
    <activity android:label="@string/app_name" android:name="com.google.unity.GoogleUnityActivity" android:screenOrientation="landscape" android:launchMode="singleTask" android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale">
      <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="false" />
      <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
      <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
        <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
      </intent-filter>
    </activity>
    <uses-library android:name="com.projecttango.libtango_device" android:required="true" />
  </application>
  <uses-sdk android:minSdkVersion="19" android:targetSdkVersion="21" />
  <uses-feature android:glEsVersion="0x00020000" />
  <uses-feature android:name="android.hardware.touchscreen" android:required="false" />
  <uses-feature android:name="android.hardware.touchscreen.multitouch" android:required="false" />
  <uses-feature android:name="android.hardware.touchscreen.multitouch.distinct" android:required="false" />
</manifest>

参考:https://github.com/googlesamples/tango-examples-unity

【问题讨论】:

  • 我认为这条线会导致问题,因为这将只允许在项目设备上安装探戈启用。 developers.google.com/project-tango/overview/android-tips 尝试删除它,以便它可以工作,但我不确定你的应用程序是否可以工作,因为我对探戈项目一无所知,但这条线似乎是这样,你的设备可能没有启用探戈
  • 注意了,我先试试。

标签: java android unity3d google-project-tango


【解决方案1】:

如果您的设备不是 Project Tango 开发套件,您可能无法成功运行该应用。

Tango 设备中有一些默认库。

对于

 <uses-library android:name="com.projecttango.libtango_device" android:required="true" /> 

使用 Project Tango 框架将应用程序部署到 Google Play 只需要在正常的 Android 分发过程中增加一个步骤。为确保您的应用程序只能由 Project Tango 兼容设备安装,请将以下行添加到应用程序的清单文件中。

【讨论】:

    猜你喜欢
    • 2017-09-25
    • 1970-01-01
    • 2023-04-08
    • 2021-12-05
    • 1970-01-01
    • 2019-03-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多