Fix import error in all classes in Android Studio
Photo by Eduardo Rosas on Pexels
Sometimes when importing an Android project, you may encounter the surprise that all the classes you open have pre-compilation problems.
It’s not that your code is broken. The issue is because the cache retains corrupted data that, when imported into your system, interferes with the code.
The problem has an easy solution:
- Click on File
- Click on Invalidate Caches / Restart
- Now click on Invalidate and Restart
With these simple steps, you can fix the error and the headache.