Debugging Aar File in a Module Project

Tarik Mankaoglu
Appcent
Published in
Feb 23, 2021

Hello Everyone,

Today, I will tell you how to debug our module project that we developed outside of the main project; after we add (.aar) to the main project.

1-) We added the module project ( as .aar ) into our main project and make the necessary definitions in gradle.

implementation(name:'example_module', ext:'aar')

2-) We upload the main project to smartphone of our choice and open app

3-) Open the module project on PC

4-) Finally, we activate the debug mode with the visuals and steps I have put below.

Select app (1), click to attach debugger (2), select your app from the list in the window(3) and Put breakpoint where you want to debug. The debug will now be active in the module project.

I hope I was able to help you. See you in the next story…

--

--