Get dependency graph in Android Studio
Answered
Hello,
I'm developing a plugin for Android studio.
I'm looking for a way to get the dependency tree of an Android project programmatically from my plugin.
The results must be a tree and not a flat list.
Is it possible to get it in Android Studio?
Thanks.
Please sign in to leave a comment.
You can use com.android.tools.idea.projectsystem.AndroidModuleSystem to enumerate all dependencies, acquire via com.android.tools.idea.projectsystem.ProjectSystemService#getProjectSystem#getModuleSystem