Quantcast
Channel: Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1616

Microsoft* Visual Studio* IDE: vs-android Enabling for Android* Targets

$
0
0

This topic applies to C++ Windows* OS only.

You can use Microsoft* Visual Studio* IDE to build Android C/C++ applications only if you integrate the IDE with a third-party plugin called vs-android. The vs-android plugin enables the Microsoft* Visual Studio* build system to compile and link Android* C/C++ projects. You can also integrate the Intel® C++ Compiler into the vs-android software to use Visual Studio as your build system for Android* applications.

If the Intel® C++ Compiler is a component of a product that includes the vs-android plugin, install the plugin before you install the compiler component. The installation integrates the Intel® compiler with vs-android allowing you to use Visual Studio* to build your Android applications immediately. For more information, see the product Installation Guide and Release Notes.

If the Intel® C++ Compiler is a component of a product that does not include the vs-android plugin, go to https://code.google.com/p/vs-android/wiki/Installation to download and install it. You must now manually integrate the Intel® compiler into vs-android.

Manually Integrating Intel® C++ Compiler into vs-android

If you have installed the Intel® compiler on your system with Visual Studio and are now installing the vs-android plugin, you must integrate the compiler into vs-android before you can use it.

Follow these steps to manually integrate the Intel® compiler into vs-android:

  1. Make sure your Windows account has administrator privileges.

  2. In Windows Explorer, open %CommonProgramFiles%\Intel\shared files\VS Integration\Android directory.

    For example: C:\Program Files (x86)\Common Files\Intel\shared files\VS Integration\Android.

  3. Locate vsa_updater.exe in \VS2010 or \VS11 folder depending on the version of Visual Studio installed with administrator privileges.

  4. 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.

Inglés

Viewing all articles
Browse latest Browse all 1616

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>