最近更新后,我的 Android Studio 不会自动保存更改。例如,我在日志中添加了一些信息并运行了我的应用程序:
Log.i("test","starting app");
然后我把消息改成了这样:
Log.i("test","starting app: success");
当我再次运行我的应用程序时,日志中仍然显示“正在启动应用程序”。评论也会发生同样的事情:我评论了未使用的代码行,但在重新启动应用程序后我仍然让它们工作。 更改仅在我重新启动 Android Studio 后实现。我知道这听起来很愚蠢,但我仍然不知道问题出在哪里。
最佳答案
来自 Goktay Kaykusuz 在另一篇文章中的回答:
Just go to "File -> Settings -> Build, Execution, Deployement -> Instant Run" and just disable it. With this Android Studio builds from scratch each time but it's better than not building it right.
关于Android Studio 不会自动保存更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37792114/