CookieMonster
CookieMonster

Reputation: 1833

Android Studio 3.3 click on R.layout.some_layout issue

I just updated my Android Studio to latest 3.3 version, and every time I click on R.layout.some_layout in Kotlin classes the studio opens the R.java file instead of the xml file like it was before this update. In Java files it works as excepted. Any ideas?

Upvotes: 2

Views: 165

Answers (2)

CookieMonster
CookieMonster

Reputation: 1833

After I updated the Kotlin version to 1.3 and the gradle to 4.10.1 this issue was solved for me.

Upvotes: 1

Red M
Red M

Reputation: 2789

In your Android Studio, try this:

Select File, click on Invalidate Caches/Restart. Select Invalidate and Restart from the window.

This should clear out all of the previous id resources that were cached in your IDE.

Upvotes: 0

Related Questions