gaqwarrior.blogg.se

Android studio debug ndk code
Android studio debug ndk code








android studio debug ndk code

Select “create project from existing source”.We will use this copy for debugging leaving the original sample untouched. First, copy the \samples\hello-jni folder to a new location (e.g.

android studio debug ndk code

For simplicity we’ll use the hello-jni project provided by Android NDK.īefore you begin, please install VisualGDB 2.0 or later (ensure that “Android Edition” is checked in the installer) and Eclipse with the ADT plugin. Visual Studio will be used to debug the C/C++ part of the projectīoth debuggers (Eclipse and Visual Studio) will be attached to the application at the same time allowing you to debug both Java and C++ code simultaneously.Eclipse will be used to debug the Java part of the project.This tutorial shows how to debug the hello-jni project with both Eclipse and Visual Studio:










Android studio debug ndk code