Android Studio 2.0: Why Does Instant Run Not Work When Modifying Xml Layout Resources?
This is a very new feature, as Android Studio 2.0 is only available in the canary release channel, however I was hoping someone could further explain how the Instant Run feature wo
Solution 1:
As you know all the resources used in your xml file are converted into static fields in R class. As per the information got from http://tools.android.com/tech-docs/instant-run changing static fields are not supported by instant Run.
Solution 2:
Just a little hint. When I switched from Android Studio 1.5 to 2.0 (stable) the new Instant Run didn't work with layout changes.
I tried Run
> Clean and rerun app
and I solved, since that moment Instant Run works.
Solution 3:
Update:
Google launches Android Studio 2.0 beta with Cold Swap, app indexing improvements, and multi-touch support.
Post a Comment for "Android Studio 2.0: Why Does Instant Run Not Work When Modifying Xml Layout Resources?"