Android++ -- A native development and debugging solution for Visual Studio.
Android++ is a freely distributed extension and associated MSBuild scripts designed to enable Android application development within Visual Studio. Primarily for NDK based C/C++ applications, it also incorporates customisable deployment, resource management, and integrated Java source compilation.
Android SDK (http://developer.android.com/sdk/)
Android NDK (https://developer.android.com/tools/sdk/ndk/)
Java Development Kit (JDK) 1.7 or 1.8
Create several new environment variables to reference installations of the SDK, NDK, and JDK.
ANDROID_SDK
, value: <path_to_sdk_root>
ANDROID_NDK
, value: <path_to_ndk_root>
JAVA_HOME
, value: <path_to_java_jdk_root>
Close all instances of Visual Studio and any Command Prompt windows.
Bootstrap for one (or more) instances of Visual Studio using the bootstrap_vs*.cmd
scripts in Android++'s root.
./bootstrap/
directory. These allow more fine grain control../bootstrap/
for these scripts.Build a sample. See below.
Find bundled projects located under msbuild/samples
from the root of your Android++ installation.
Build the hello-gdbserver
project. This is a tiny application to force a segmentation fault.
Ensure 'hello-gdbserver' is set as the launch project. This is indicated by the project name being represented in bold.
Run the project. Press F5 or select 'Debug -> Start Debugging'.
A 'Configuring Android++' dialog should appear. Installation and connection status can be monitored here.
./docs/troubleshooting.txt
.Wait for connection to be finalised. On device you should see a large button labelled 'Induce Crash'. Press it.
Visual Studio should alert you that a 'Segmentation Fault' has occurred. Click 'Break' to see its location in native code.