we are working on an android project and want to develop two binaries that work together: a UI App, and an AAR library back end. The idea is that the AAR may be used in the future with other UIs.
So, we have one developer working on the AAR project, and another developer working on a UI project. Is there any way to debug the two simultaneously; i.e., run the UI+AAR and trace execution back and forth between the two, setting breakpoints and watches on either side, etc.?
I've done the analogous thing in .NET, develop a UI EXE+DLL back end with multiple "projects" in a single "solution", debugging the whole thing at once; it's a really nice way to develop. Is there any way to achieve this with android studio?
Thanks.
You can add both parts to one project as modules. Then you add a direct dependency in your UI module to the second module. Now you can debug both at the same time.
This is the best solution if you also want to be able to make changes in both parts.
If you want to debug any library in combination with your code, Android Studio also supports breakpoints in decompiled files (or in the attached source if there is one).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With