Android - 失败[INSTALL_FAILED_MISSING_SHARED_LIBRARY]安装失败,输出如下:pkg:/data/local/tmp/Package.apk

问题描述 投票:0回答:1

我尝试使用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()

我不知道我的AndroidManifest.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

java android unity3d google-project-tango
1个回答
1
投票

如果您的设备不是Project Tango开发工具包,则可能无法成功运行该应用程序。

Tango设备中有一些默认库。

对于

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

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

© www.soinside.com 2019 - 2024. All rights reserved.