“Couldn't resolve resource” in Android Studio's Preview

前端 未结 7 1723
無奈伤痛
無奈伤痛 2021-01-31 01:41

After adding new items in strings.xml, quite often they don\'t start working immediately in Android Studio\'s Preview.

Couldn\'t resolve res

7条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-31 02:19

    The only reliable way I've found so far is reloading the project / restarting Android Studio.

    Quickest way to do that is File → Invalidate caches / Restart... → Just Restart.

    Feel free to post better solutions!

提交回复
热议问题