Search code examples
androidcordovavisual-studio-2017hybrid-mobile-appandroid-sdk-manager

In Visual Studio 2017, how to use an existing Android SDK for Cordova?


I am using Visual Studio 2017 for Creating Cordova projects, I have an Android SDK already installed on my machine, how to configure Visual Studio to use it, instead of downloading a new instance of Android SDK?


Solution

  • I get to know the answer, please follow the below steps:

    1. Choose Tools menu >Options. 1]

    2. Choose Tools for Apache Cordova >Environment Variable Overrides. enter image description here

    3. Check the checkbox against ANDROID_HOME and click on Browse(...) button.

    enter image description here

    1. Select your existing Android SDK folder, and click OK.

    enter image description here

    1. It is recommended to restart Visual Studio.