This section describes debugging our sample native app in Androidstudio.
Note: Android studio has been supporting native development. Some developers have reported problems using Note4 running Lollipop (5.0.x) and using S6 to run 5.0.0, which can cause some debugging problems. If you have debugging problems, try updating to the latest system software, or post on the Oculus Forum.
The default configuration for project import only supports Jave debugging.
Select Edit Configuratios ... The Configurations drop-down menu for the Android Studio toolbar.
Build a new Android native configuration as shown below:
In the general column of the Run/debug Configuration dialog box, give your configuration a name, select the target module, and select the target device mode:
In the native column of the Run/debug Configuration dialog box, add the symbol path:
Note Ndk-build places the library into the libs/directory without the symbol table. You must specify that the lookup path is the obj/local/<arch> directory. It cannot be a recursive search to the path, so you must set the absolute path to the obj/local/armeabi-v7a directory.
Android Studio Native Debugging