Failure to try

In tried this blog www.jianshu.com/p/3fab5bb2c… After nothing worked, I tried the following methods:

  1. Re-import the project. no
  2. Delete android cache file. no

The way to Succeed

  • Go to the official website to download the old Android Studio package. Developer.android.com/studio/arch…
  • Reinstallation
  • Problems encountered:
Missing essential plugin:

  org.jetbrains.android

Please reinstall Android Studio from scratch.
Copy the code

Solution: stackoverflow.com/questions/6… Delete the disabled_plugins. TXT file of each version:

  • Find ~/ library-name disabled_plugins.txt
  • Then delete the TXT file with the words AndroidStudio2021.1