Home > Software design >  Cannot resolve symbol 'R' Android Studio in AppCompatViewInflater file
Cannot resolve symbol 'R' Android Studio in AppCompatViewInflater file

Time:03-07

I have "Cannot resolve symbol 'R'" error in read-only file: AppCompatViewInflater.java

But there's no such error in my code

https://github.com/OHtuzh/WeatherApp

Tried:

  1. File -> Sync Project with Grandle Files
  2. Build -> Clean Project Build -> Rebuild

CodePudding user response:

Try doing Build->Clean Project

CodePudding user response:

the problem is being you might need to add this to your import statements change androidx.appcompat.R to

import [packagename].R

packagename example = com.example.myapp

  • Related