All imports error in Android Studio

2020-07-13 09:17发布

问题:

Yesterday, my kid has turned off my PC by unplug it directly from the wall electricity source. When I launched Android Studio today, as you can see in the picture...

I tried:

  • Checking the SDK location.
  • Rebuild the project.
  • Restart Android Studio.
  • Sync project's gradle file.

Any Help?

回答1:

In android Studio open File--->Invalidate Caches/Restart and select Invalidate and Restart.hope that help



回答2:

It's a guess, but maybe it can't find your Android SDK for whatever reason.

Try checking the path (Assuming Android Studion 1.1.0):

File -> Project Structure -> SDK Location

Check that SDK location is linked to your Android SDK correctly