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 App configuration as show below:
In the General tab of the Run/Debug Configuration dialog box, give the configuration a name and select a module.
In the Debugger tab of the Run/Debug Configuration dialog box, change the Debug type to Native, and add symbol paths:
ndk-build places stripped libraries inside the
libs/ directory. You must point the symbol search paths at the
obj/local/<arch> directory. This is also not a recursive search path, so you must set the full path to the