Android Studio 不会自动保存更改
Android Studio does not save changes automatically
最近更新后,我的 Android Studio 不会自动保存更改。例如,我在日志中添加了一些信息,运行 我的应用程序:
Log.i("test","starting app");
然后我把消息改成了这样:
Log.i("test","starting app: success");
当我再次 运行 我的应用程序时,我仍然在日志中得到 "starting app"。评论也会发生同样的事情:我评论了未使用的代码行,但在重新启动应用程序后我仍然让它们工作。 仅在我重新启动 Android Studio 后才会实施更改。我知道这听起来很愚蠢,但我仍然不知道问题出在哪里。
来自另一个post的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.
查看 and this了解更多信息,我相信问题是相似的。
最近更新后,我的 Android Studio 不会自动保存更改。例如,我在日志中添加了一些信息,运行 我的应用程序:
Log.i("test","starting app");
然后我把消息改成了这样:
Log.i("test","starting app: success");
当我再次 运行 我的应用程序时,我仍然在日志中得到 "starting app"。评论也会发生同样的事情:我评论了未使用的代码行,但在重新启动应用程序后我仍然让它们工作。 仅在我重新启动 Android Studio 后才会实施更改。我知道这听起来很愚蠢,但我仍然不知道问题出在哪里。
来自另一个post的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.
查看