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:
- File -> Sync Project with Grandle Files
- 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