Closed atsushieno closed 3 years ago
It is because .idea/modules/app/Android.app.iml
lists /home
under <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7">
.
Either Projucer, any AS 4.1 features, past versions of AS 4.x, or extensions (Flutter, Rust etc.) is/was causing this. Removing this made the issue gone. We still have to observe this so that it does not happen again.
When I tried AudioPluginHost, /home
still appears on the "Project Files" perspective, even after I removed the corresponding entry above, but it does not index /home
.
... and it's gone after I updated AGP version as Android Studio requests. It's almost heisenbug.
Found a related Android Studio issue: https://issuetracker.google.com/issues/159719671
There actually are many issues with related to indexing that Google doesn't really respect.
In these 9 months, the situation was slowly getting better, and with the latest Arctic Fox 2020.3.1 I am not suffered from it so far. Closing.
It took like an entire night to finish indexing at "/home" ~(which actually is
~/
, not/home
)~ which is stupid. The problem is that unless AS finishes that "indexing" step, it does not load device list and no further exec/debug operation cannot be performed.AAP itself has no problem. Projucer-generated default GUI App has no problem either. Something between them and this is causing the issue.