This topic applies to C++ Windows* OS only.
The vs-android plugin (https://github.com/gavinpugh/vs-android) provides a collection of scripts and utilities to support integrated development of Android* NDK C/C++ software with Microsoft* Visual Studio*. The vs-android plugin supports Visual Studio* 2010, 2012 and 2013. Visual Studio* 2015 includes built-in support for developing Android* applications and does not require the vs-android plugin. See Building Android* Applications Using Microsoft* Visual Studio* 2015 for details.
Note
To develop Android* applications with Visual Studio using the Intel® C++ Compiler, you must install the 64-bit Android NDK. The 64-bit Android* NDK is available at https://developer.android.com/ndk/downloads/index.html.
Some Intel products include the vs-android plugin while some do not. Check the product's Installation Guide and Release Notes.
Integrating vs-android with Visual Studio* IDE during Product Installation
If you have already installed Visual Studio* 2010, 2012 or 2013, you can go ahead and install the product that includes vs-android plugin by selecting to install the plugin before installing the Intel® C/C++ compiler component. The product installation automatically integrates the Visual Studio* IDE with the vs-android plugin, allowing you to build Android* applications with Intel® C++ Compiler in Visual Studio* 2010, 2012 or 2013.
Integrating vs-android with Visual Studio* IDE after Product Installation
If the Intel® C++ Compiler is a component of a product that does not include the vs-android plugin, you can manually integrate the vs-android plugin with Visual Studio* 2010, 2012 or 2013. The plugin is available from https://github.com/gavinpugh/vs-android.
To manually integrate the vs-android plugin with the previously installed Visual Studio* IDE:
- Make sure your Windows* account has administrator privileges.
- In Windows Explorer, go to the folder C:\Program Files (x86)\IntelSWTools\ide_support_2016\vs-android on 64-bit Windows* system or C:\Program Files\IntelSWTools\ide_support_2016\vs-android on 32-bit Windows* system.
- Locate vsa_updater.exe in \VS2010 or \VS11 or \VS12 folder, depending on the version of Visual Studio installed.
- Select vsa_updater.exe file, right click and select Run as administrator from the drop-down menu.
Note
If you see an error message saying "Access to path '...' is denied"
, you have not started the vsa_updater.exe as administrator.
Troubleshooting
Some known issues and corresponding workaround when using vs-android with Intel® C++ Compiler are listed here.
The vs-android software issues the following warning during a build:
Warning
The x86 toolchain isn't fully tested with vs-android. Use at your own risk.
You can safely ignore this warning and proceed with the build.
If you build the application in Release mode, the deployment might fail because the [application]-release.apk cannot be found. The root cause most likely is that the build environment cannot find signature keys for signing the application.
Example error message:
-release-nosign: [echo] No key.store and key.alias properties found in build.properties. [echo] Please sign vs-android_samples\vs-android_samples\san-angeles\ AndroidApk\bin\DemoActivity-release-unsigned.apk manually ... ... ,,, Deploying... ( Use 'Build -> Cancel' - to halt deploy ) C:\android\adt\sdk\platform-tools\adb.exe wait-for-device C:\android\adt\sdk\platform-tools\adb.exe install -r "vs-android_samples\ san-angeles\AndroidApk\bin\DemoActivity-release.apk" can't find 'vs-android_samples\vs-android_samples\san-angeles\AndroidApk\bin\ DemoActivity-release.apk' to install 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Platforms\Android\ Microsoft.Cpp.Android.Targets(398,5): error MSB6006: "C:\android\adt\sdk\ platform-tools\adb.exe" exited with code 1. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Build the application in Debug mode or create the required signature keys as described in http://developer.android.com/tools/publishing/app-signing.html to solve the issue.