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.

1 comment
Comment actions Permalink

You can use com.android.tools.idea.projectsystem.AndroidModuleSystem to enumerate all dependencies, acquire via com.android.tools.idea.projectsystem.ProjectSystemService#getProjectSystem#getModuleSystem

0

Please sign in to leave a comment.