Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 483
MrDEV Avatar asked Aug 27 '17 10:08

MrDEV


People also ask

How do I add an app to my Cordova project?

Enter a name for your application project, adding an optional description as needed. Select the appropriate OS for your application project (Android or iOS only), then select the Cordova platform option. Click the Add new app button on the bottom-right corner of the page. Locate the app secret on the application project's Settings page.

Can I use Visual Studio to build Android apps?

Build amazing apps for Android with Visual Studio. Quickly learn how to build Android apps with Visual Studio. Build rich native apps using C# and Xamarin with 100% of the native APIs exposed to you. Or push maximum performance using C++ with code that could be reused with iOS or Windows.

Does Visual Studio Tools for Apache Cordova work on iOS?

Figure 12 : You can also open the built-in project in XCode for tweaking settings or debugging build errors at the source. Cordova supports many mobile platforms but the Visual Studio Tools for Apache Cordova supports only Android and Windows Phone in addition to the iOS, as I've shown.

How to use the SDK manager in Visual Studio?

To start the SDK Manager in Visual Studio, click Tools > Android > Android SDK Manager: The Android SDK Manager opens in the Android SDKs and Toolsscreen. This screen has two tabs – Platformsand Tools:


1 Answers

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.
like image 97
MrDEV Avatar answered Sep 28 '22 11:09

MrDEV