0

I compile a project using prebuild shared libraries (compiled elsewhere), that I want to debug in Android Studio.

I tried to copy the library source code into my Android Studio project, and use them to make breakpoints, but it's not working. It cannot find the position to put it (pending breakpoint). The prebuild libraries are well debugging compiled, but elsewhere.

How can I include library source files into my android studio project, and used them to debug my prebuild libraries during application execution?

Prince Dholakiya
  • 3,321
  • 24
  • 42

1 Answers1

0

The prerequisite is to declare the following in your gradle file:

buildTypes {
    debug {
        minifyEnabled false
        debuggable true
    }
}

Then you need to edit your run configuration: enter image description here Select the debug type as dual and add the missing symbol directories by pressing the plus button.

Make sure that you have selected the debug Build Variant in Android Studio. Sometimes it helps if you run "Clean Project" and "Refresh Linked C++ Projects" and then make a full rebuild.

20knots
  • 507
  • 1
  • 6
  • 15