INSTALL_FAILED_USER_RESTRICTED:解决黑鲨/小米手机wifi debug安装apk时AS报错

android studio 信息如下:

Android Studio Iguana | 2023.2.1

Build #AI-232.10227.8.2321.11479570, built on February 22, 2024

Runtime version: 17.0.10+7-b1000.50 amd64

VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.

Windows 10.0

GC: G1 Young Generation, G1 Old Generation

Memory: 2048M

Cores: 16

Registry:

ide.browser.jcef.sandbox.enable=false

ide.experimental.ui=true

Non-Bundled Plugins:

co.fitten.fittencode-intellij-beta (0.10.12)

Docker (232.10227.13)

问题描述

使用wifi debug代替传统usb调试,安装应用的时候出现

INSTALL_FAILED_USER_RESTRICTED

解决办法:

打开开发者模式

勾选 1.无线调试 2.USB调试 3.USB安装

取消勾选 : 1.启用MIUI优化 也就是关闭MIUI优化

相关推荐
阿巴斯甜11 小时前
Android 报错:Zip file '/Users/lyy/develop/repoAndroidLapp/l-app-android-ble/app/bu
android
Kapaseker11 小时前
实战 Compose 中的 IntrinsicSize
android·kotlin
xq952712 小时前
Andorid Google 登录接入文档
android
黄林晴14 小时前
告别 Modifier 地狱,Compose 样式系统要变天了
android·android jetpack
冬奇Lab1 天前
Android触摸事件分发、手势识别与输入优化实战
android·源码阅读
城东米粉儿1 天前
Android MediaPlayer 笔记
android
Jony_1 天前
Android 启动优化方案
android
阿巴斯甜1 天前
Android studio 报错:Cause: error=86, Bad CPU type in executable
android
张小潇1 天前
AOSP15 Input专题InputReader源码分析
android
_小马快跑_1 天前
Kotlin | 协程调度器选择:何时用CoroutineScope配置,何时用launch指定?
android