How to access .AndroidStudio folder path from AndroidStudio Plugin?
Answered
From my plugin, I want to navigate to a folder where .AndroidStudio folder is installed. As far as I know, this path varies for different users and OS. I need to get this .AndroidStudio folder dynamically from the code.

Currently I am using direct path manually like "C:\users\p\.AndroidStudio3.6\plugins\......". I want to make it user independent. I tried using..
idea.plugins.path
But, it looks like my ide can't recognize this. I am beginner to Intellij plugin development.
PathManager.getPluginsPath() worked for now. But I am not sure if android studio build version gets updated, it'll still work or not.
Please sign in to leave a comment.
Using com.intellij.openapi.application.PathManager to obtain config/plugin/... folders is correct approach, as it will use all mechanisms for overriding defaults when user chooses to.
Thank you.