首页 > 解决方案 > 小米 K20 Pro 上的 INSTALL_FAILED_MISSING_SHARED_LIBRARY

问题描述

我正在使用 Android Studio 4.1。我使用电话号码创建了一个基本的身份验证应用程序。我尝试使用 USB 调试在我的 Android 设备上运行它。应用程序未安装。

01/03 15:05:57: Launching 'app' on Xiaomi Redmi K20 Pro.
Installation did not succeed.
The application could not be installed: INSTALL_FAILED_MISSING_SHARED_LIBRARY

List of apks:
[0] 'D:\WorkSpace\SmartSquad\pBunk\app\build\outputs\apk\debug\app-debug.apk'
Installation failed due to: 'null'

这个问题有什么解决办法吗?

以下是AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.first.pBunk">

    <uses-permission android:name="android.permission.WAKE_LOCK" />

    <uses-feature android:name="android.hardware.type.watch" />

    <uses-permission android:name="android.permission.INTERNET" />

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/Theme.PBunk">
        <uses-library
            android:name="com.google.android.wearable"
            android:required="true" />

        <!--
               Set to true if your app is Standalone, that is, it does not require the handheld
               app to run.
        -->
        <meta-data
            android:name="com.google.android.wearable.standalone"
            android:value="true" />

        <activity
            android:name=".SignedIn"
            android:label="@string/title_activity_signed_in">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

标签: android

解决方案


推荐阅读