Native Debugging with Android Studio

This section introduces debugging our sample native apps in Android Studio.

The default configurations created during project import only support Java debugging.

Select Edit Configurations… in the Configurations drop-down menu in the Android Studio toolbar.

Create a new Android Native configuration as show below:

In the General tab of the Run/Debug Configuration dialog box, assign your configuration a name, select the target module, and select the target device mode:

In the Native tab of the Run/Debug Configuration dialog box, add symbol paths:

Note that ndk-build places stripped libraries inside the libs/ directory. You must point the symbol search paths at the obj/local/ directory. This is also not a recursive search path, so you must put the **full** path to the obj/local/armeabi-v7a directory.