Installation did not succeed. The application could not be installed: INSTALL_FAILED_MISSING_SHARED_LIBRARY List of apks: [0] Installation failed due to: 'null'
异常
Installation did not succeed.
The application could not be installed: INSTALL_FAILED_MISSING_SHARED_LIBRARY
List of apks:
[0] 'app\build\outputs\apk\debug\app-debug.apk'
Installation failed due to: 'null'
Retry
AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.myapplication3">
<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.MyApplication3">
<!-- 不知道怎么出现的这个 -->
<uses-library android:name="com.google.android.things"/>
<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>
解决
- 把
AndroidManifest.xml
中uses-library
进行注释掉。