Android Studio 2.0: Why does Instant Run not work when modifying xml layout resources?

前端 未结 3 1755
一向
一向 2020-12-03 13:43

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 fea

相关标签:
3条回答
  • 2020-12-03 13:57

    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.

    0 讨论(0)
  • 2020-12-03 14:03

    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.

    0 讨论(0)
  • 2020-12-03 14:11

    Update:

    Google launches Android Studio 2.0 beta with Cold Swap, app indexing improvements, and multi-touch support.

    0 讨论(0)
提交回复
热议问题