gpt4 book ai didi

Android Studio 不会自动保存更改

转载 作者:行者123 更新时间:2023-11-29 19:45:34 26 4
gpt4 key购买 nike

最近更新后,我的 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.

查看 thisthis有关更多信息,我相信问题是相似的。

关于Android Studio 不会自动保存更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37792114/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com