java 安装未成功,无法安装应用程序,apks列表

4xy9mtcn  于 2023-03-16  发布在  Java
关注(0)|答案(1)|浏览(196)

我正在尝试在Android Studio 4.0.1上运行我的应用在手机上安装应用时返回错误

Installation did not succeed.
The application could not be installed.

List of apks:
[0] 'C:\Users\User\StudioProjects\ProjectName\app\build\outputs\apk\debug\app-debug.apk'
Installation failed due to: 'Failed to install-write all apks'
qvtsj1bj

qvtsj1bj1#

我通过将android:installLocation="auto添加到清单来解决这个问题:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:installLocation="auto">

相关问题