Android Studio 应用安装失败 [英] Application Installation Failed in Android Studio
问题描述
昨天我的应用在 Android Studio
中运行良好,但今天当我开始开发我的应用并运行它时,我不断收到错误消息
Yesterday my app was running perfect from Android Studio
but today when I started working on my app and running it i am getting error message continuously
安装失败并显示消息无法建立会话.
Installation failed with message Failed to establish session.
屏幕:
点击确定得到错误信息
会话应用":安装 APK 时出错
Session 'app':Error Installing APKs
并且设备中不存在应用程序(已卸载).请建议我该怎么做?
And App is not exist(already Uninstalled) in device. Please suggest me what to do ?
推荐答案
在这个问题上我也发现 Instant Run 有问题.当我禁用 Instant run 并再次运行应用程序时,应用程序开始在设备中成功安装,而没有显示任何错误窗口.我希望谷歌能尽快通过 Instant run 解决这些问题.
Again in this issue also I found Instant Run buggy. When I disable the Instant run and run the app again App starts successfully installing in the Device without showing any error Window. I hope google will sort out these Issues with Instant run soon.
从 Android Studio 禁用 Instant Run 的步骤:
Steps to disable Instant Run from Android Studio:
文件 > 设置 > 构建、执行、部署 > 即时运行 > 取消选中(启用 Instant Run 以热插拔代码)
File > Settings > Build,Execution,Deployment > Instant Run > Un-check (Enable Instant Run to hot swap code)
这篇关于Android Studio 应用安装失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!