Cannot Resolve symbol R ??
I also have the same issue I try many things to solve the problemlike invalidate caches etc many times but failed I find it on Google but not find the answer then i suddenly or intentionally check out my imports I look like import android.annotation.SuppressLint.R then i just remove the R and the error is solved
import android.annotation.SuppressLint and the error is solved
so I find this solution to the given problem.