【发布时间】:2016-03-10 15:10:17
【问题描述】:
我正在测试 Android Instant Run。为了测试,我刚刚在我的 Activity 的 onResume() 中添加了以下行:
Toast.makeText(this, "test123", Toast.LENGTH_SHORT).show();
现在,当我更改 toast 的文本并重建时,它会告诉我
"Instant Run detected that a resource referenced from the AndroidManifest.xml file has changed"
谁能解释这里发生了什么?我没有更改任何资源,只是 Activity java 文件中的字符串文字。 (我知道我应该在 Android btw 中使用字符串资源)。
【问题讨论】:
标签: android android-studio android-build instant-run