I have an Android Studio project which contains a library module, which is added as another gradle project to it. I would like to debug the library code and set breakpoints on i
I'm using this setup to debug my libraries:
|- myApplication
| |- settigs.gradle
| |- build.gradle
| ...
|- myLibrary
|- build.gradle
...
add to settings.gradle:
include ':myLibrary'
project(':myLibrary').projectDir = new File(settingsDir, '../myLibrary')
add to build.gradle (of your app)
compile project(':myLibrary')
Your library gets simply included and you can debug and set breakpoints just like in the app.