Ad

How To Fix Project Classes Having Unwanted R Subclass

- 1 answer

The project was just working yesterday, but when I started Android Studio today. It was all messed up.

The main problem is my classes are having an unwanted 'R' subclass.

How to fix this?

I've tried 'Invalidate Caches/Restart' 'Rebuild project' 'clean project' 'Removing .idea folder' etc.

enter image description here

Ad

Answer

I fixed the issue!

I deleted "C:\Users\Suda.AndroidStudio3.4\system\caches" and boom my error fixed.

Ad
source: stackoverflow.com
Ad