Android Studio不会自动保存更改

Android Studio does not save changes automatically

在最近更新之后,我的Android Studio不会自动保存更改。例如,我在日志中添加了一些信息并运行了我的应用程序:

1
Log.i("test","starting app");

然后我只是将消息更改为如下内容:

1
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.

查看此内容以获取更多信息,我相信问题是相似的。