Home > Net >  Android Studio project doesn't recognize some classes since got my Mac
Android Studio project doesn't recognize some classes since got my Mac

Time:12-24

Since I got my Mac, I've encountered some problems when pulling my projects from Github.
The app still works even though Android Studio does not recognize some classes.
However, it is very annoying that I have to remove the import lines and write them again every time I pull my project from Github.
Could the problem be that I use a Mac while my colleagues who work on the same project use Windows?

enter image description here

CodePudding user response:

Maybe try rebuilding the project (Build -> Rebuild Project). Hopefully that helps.

CodePudding user response:

My problem was solved after I cleared the system cache.
If you have the same problem, just follow these steps:

  1. From the main menu, select File.
  2. Click invalidate Caches/Restart.
  3. Click Invalidate and Restart.
  • Related