Android Studio-2.3 打包运行App报错问题

来源:互联网 发布:手机淘宝详情店铺活动 编辑:程序博客网 时间:2024/04/30 00:58

原文网址:[点击打开链接]
(http://blog.csdn.net/c__chao/article/details/64124377)

由于最近将Android Studio-2.2升级至2.3了,一直用测试机编译应用,未发现任何异常,可是今天突然发现一个小意外,也是真令人头疼。

今天直接用我自己的手机Run,Studio一直提示安装失败,提示错误:

Installation failed with message Failed to establish session.It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.WARNING: Uninstalling will remove the application data!Do you want to uninstall the existing application?原文翻译:安装失败,消息未能建立会话。这是可能的,这个问题解决通过卸载APK现有的版本,如果真的存在,然后重新安装。警告:卸载会删除应用程序数据!是否要卸载现有应用程序?

针对这个错误 网上找了好多解决办法:
1.检查手机是否又app残留文件,是否卸载干净
2.检查包名是否一致等问题
全都不是 最后找到了解决方案如下:
这里写图片描述

详细解释见:原文[点击打开链接]
(http://blog.csdn.net/c__chao/article/details/64124377)