0

I have an Android NDK project that lives in a large repository that is located /src/project/myandroidproject.

It requires a couple of libraries that are located in a very large directory src/libs. For example, src/libs/json.

When including these libraries android studio decides to index the whole src/libs, which is a bad idea as this folder is ~100GBs and will cause Android studio to completely freeze and crash when "Updating Symbols".

I have found that I can mark the whole directory as excluded, but this seems to be reset every time I sync the gradle project. I've found this answer: How do I remove directories from Indexing in Android Studio?. However, this only seems to apply for child directories of the project.

I am looking for a way to be able to exclude a directory from being indexed by Android Studio when that directory is not a child directory of the project.

danwillm
  • 469
  • 3
  • 17

0 Answers0