Search code examples
android-studio

Change external annotations folder in Android Studio 2.2.3


I set the folder for external annotation once in my Android studio. Now, I wanted to change the folder location, following https://www.jetbrains.com/help/idea/2016.3/using-external-annotations.html#d2150916e113 guideline. However, there is no Paths tab...

Does anyone know how to do it? Any config file... whatever!

enter image description here


Solution

  • With reference to this, https://blog.jetbrains.com/idea/2008/02/external-annotations/ I also faced this problem that there is no Paths tab in the Annotations area in the module settings as mentioned in this page.

    However, you can edit the .iml in your module folder or .iml in your project folder, depending on whether you want to have externally stored annotations for only a specific module or entire project.

    The annotation-paths tag is the one you need to edit.
    <annotation-paths> <root url="file://$MODULE_DIR$" /> </annotation-paths>