简体   繁体   English

Android Studio-错误安装APK

[英]Android Studio - Error Installing APK

I am a new user to Android Studio. 我是Android Studio的新用户。 I took a class over the summer and all my projects worked (and still work). 整个暑假,我上了一堂课,我所有的项目都工作了(并且仍然有效)。 I have followed all the advice from all the advice columns but I am still getting "Session 'app': Error Installing APK" when I try running my latest projects on my Samsung S4 mini. 我遵循了所有建议列中的所有建议,但是当我尝试在Samsung S4 mini上运行最新项目时,仍然出现“会话'app':安装APK错误”的信息。 Again, all the other projects from this summer still work. 同样,今年夏天以来的所有其他项目仍然有效。 I have tried 我努力了

Does anyone have any other suggestions?? 有人还有其他建议吗?

To resolve this error uncheck the instant run in File >Settings >Build,Execution,Deployment > Instant Run 要解决此错误,请在文件>设置>构建,执行,部署>即时运行中取消选中即时运行。

This works 100%. 这有效100%。

Enable "Install Via USB" feature form developer setting of your android phone. 启用Android手机的“通过USB安装”功能表单开发人员设置。

  1. Go to Additional setting -> Developer setting (Provided you have enabled it by clicking on version for multiple tymes ) 转到其他设置->开发人员设置(前提是您已通过单击多个tyme的版本启用了它)
  2. Enable "Install Via USB" 启用“通过USB安装”

Good luck 祝好运

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM