studio.deploy: Could not get package

studio.deploy: Could not get package_第1张图片

问题描述:

Android studio直接运行app到手机出现 E/studio.deploy: Could not get package user id: run-as: Package 'camo.learn2codeproject3' 错误信息,提示安装失败

解决方法:

系统设置-开发者模式-关闭-您可能需要从未知来源开启安装

禁用Verify Apps over USB来自开发人员的设置对我有用:

Settings > Developer Options > Then Turn off Verify Apps over USB

您可能需要从未知来源开启安装:

Settings > Security > Then Turn on Unknown sources

请注意,如果该选项不可用,您还可以运行adb命令:

adb shell settings put global package_verifier_enable 0

你可能感兴趣的:(android,studio,android)