APK Dependency Graph is a plugin for Android Studio that allows display graph of dependencies.
- in Android Studio: go to
Settings → Plugins → Browse repositories
and search forAPK Dependency Graph
or
- download it and install via
Preferences → Plugins → Install plugin from disk
- Go to
Settings → Instan Run
in Android Studio and disableEnable Instant Run to hot swap code/resource changes on deploy
- Build Apk with disabled Instant Run
- Click
Tools → APK Dependency Graph → Generate Dependency Graph
- Select apk file from shown dialog
- Click
Tools → APK Dependency Graph → Set Package Filter
enterpackage name
(e.g. com.example.package) as a filter so you will avoid unnecessary dependencies in your graph.
- Go to
Tools → APK Dependency Graph → Show Generated Graph
to see last generated dependencies graph of current project in browser. - Select
Tools → APK Dependency Graph → Disable Inner Classes
to define if you want to skip inner classes on your graph or not.