title: Scanning files to index never ends in Android Studio 4.1
body: <p>I'm using cocos2d-x v4, macOS Catalina 10.15.6, Android Studio 4.1.</p>
  <p>I made a project with cocos2d-x v4.</p>
  <p>I'm using Android Studio to build an android app.</p>
  <p>Until a few days ago it worked.
  But after updating Android Studio to 4.1, everything went wrong.
  When I open the project, it says Scanning files to index .. at the bottom of Android Studio and it never ends.</p>
  <p>The Android tab on the left always says loading ..</p>
  <p><a href="https://i.stack.imgur.com/bBL98.png" rel="noreferrer"><img src="https://i.stack.imgur.com/bBL98.png" alt="enter image description here" /></a>
  <a href="https://i.stack.imgur.com/o3R2f.png" rel="noreferrer"><img src="https://i.stack.imgur.com/o3R2f.png" alt="enter image description here" /></a></p>
  <p>I tried the following, but none of them solved the problem.</p>
  <ul>
  <li>Invalidate Caches / Restart</li>
  <li>Uninstall and reinstall Android Studio</li>
  <li>Reinstall an older version of Android Studio</li>
  </ul>
  <p>When I uninstalled Android Studio, I ran the following command to remove all the old files.</p>
  <pre><code>rm -Rf /Applications/Android\Studio.app
  rm -Rf ~ / Library / Preferences / AndroidStudio *
  rm ~ / Library / Preferences / com.google.android.studio.plist
  rm -Rf ~ / Library / Application \ Support / AndroidStudio *
  rm -Rf ~ / Library / Logs / AndroidStudio *
  rm -Rf ~ / Library / Caches / AndroidStudio *
  rm -Rf ~ / .gradle
  rm -Rf ~ / .android
  rm -Rf ~ / Library / Android *
  </code></pre>
  <p>I spent a lot of time reinstalling Android Studio.
  I want to resolve this issue as soon as possible.
  Please let me know if there is a solution.
  Thank you.</p>
  <p><a href="https://i.stack.imgur.com/vRrVv.png" rel="noreferrer"><img src="https://i.stack.imgur.com/vRrVv.png" alt="enter image description here" /></a>
  <a href="https://i.stack.imgur.com/n3UY8.png" rel="noreferrer"><img src="https://i.stack.imgur.com/n3UY8.png" alt="enter image description here" /></a>
  <a href="https://i.stack.imgur.com/xV8gx.png" rel="noreferrer"><img src="https://i.stack.imgur.com/xV8gx.png" alt="enter image description here" /></a></p>