Fix import error in all classes in Android Studio

Tiempo de lectura: < 1 minuto

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:

  1. Click on File
  2. Click on Invalidate Caches / Restart
  1. Now click on Invalidate and Restart

With these simple steps, you can fix the error and the headache.

Leave a Comment