

Then build your app and try debugging it: The loader will report a missing library. Create a jni folder under the app folder (switch to the Project view from the Android view on the Project pane) and add 2 files with the following content: Now it’s time to add some native code.

Once you press “Finish”, Android Studio will create your project:.Proceed with the default activity name:.On the activity selection page select “Fullscreen activity”:.On the next wizard page specify the platform:.Visual Studio will be used to debug the C/C++ part of the projectīoth debuggers will be attached to the application at the same time without interfering with one another.īefore you begin, please install VisualGDB 4.Android Studio will be used to debug the Java part of the project.This tutorial shows how to debug a sample Android app with native code with both Android Studio and Visual Studio: Please follow the new Gradle Flavors tutorial to learn how to use VisualGDB 5.0 with Android Studio 1.3. Warning! This tutorial uses outdated versions of VisualGDB and Android Studio.
