Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio 3.0 is stuck loading symbols for my project

I updated from Android Studio 2.3 to 3.0 . Now my project is stuck loading symbols for more than 30 mins. Any pointers on how to resolve this?

I tried to reinstall it - the same result.

I tried to relaunch - the same result.

like image 438
alpha24 Avatar asked Oct 31 '17 18:10

alpha24


2 Answers

In your project,

  1. Delete {root}/.gradle folder
  2. Delete {root}/app/build folder
  3. Delete {root}/build folder
  4. Run Invalidate Caches / Restart
  5. Sync your project again after Android Studio restarts
like image 127
Sneh Pandya Avatar answered Nov 11 '22 14:11

Sneh Pandya


SOLUTION FOUND!!!

Android Studio does the most dumb thing: it indexes ALL FILES on your PC. Straight to the point: I deleted my downloads and DerivedData folder and all went alright.

A short explanation. . DerivedData became a huge folder with tons of files making Android Studio loop forever on those files . On my Mac the Downloads folder is shared as hard links with multiple apps. for example, the Skype or Steam apps have hard links to the Download folder, making Android Studio re index the entire Downloads folder multiple times.

like image 45
Demetrio Guilardi Avatar answered Nov 11 '22 12:11

Demetrio Guilardi