作者:天王2502871933 | 来源:互联网 | 2022-12-01 16:37
尝试通过Android Studio 3.4 Canary 1运行apk时收到错误消息。
Gradle插件版本 com.android.tools.build:gradle:3.4.0-alpha01
Installation failed with message Failed to commit install session 526049657 with command cmd package install-commit 526049657.. It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
我试过卸载apk,重新启动android studio和设备,并使缓存无效并重建,但似乎没有任何效果。
1> 小智..:
我在设置中禁用了“即时运行”,它对我有用。(Android Studio 3.4 canary)
然后,您可以看到在终端中执行的adb命令是“ adb push”,而在禁用之前它是“ adb install-multiple”。
2> 小智..:
在Android Studio上,转到“构建”菜单:“
构建”菜单
然后:
第一次清洁
重建
再次运行
*******效果很好**********
3> 小智..:
建立->清洁项目
重建项目
删除如下图