Avatar of Soumen Roy
Soumen RoyFlag for India

asked on 

Problem deploying solution of android project on Visual Studio 2017

Hello,

I have to work on an android application using visual studio. So I started by writing a simple "Hello World" application to print on the console.

It gives the following error.
______________________________________________________________________________________________________________________________
1>------ Build started: Project: RestSharp.Android.Sample, Configuration: Debug Any CPU ------
1>    Processing: obj\Debug\res\layout\main.xml
1>    Processing: obj\Debug\res\values\strings.xml
1>  RestSharp.Android.Sample -> C:\Data\Share\RestSharp\RestSharp\bin\Debug\RestSharp.Android.Sample.dll
1>    Processing: obj\Debug\res\layout\main.xml
1>    Processing: obj\Debug\res\values\strings.xml
1>    Processing: obj\Debug\res\layout\main.xml
1>    Processing: obj\Debug\res\values\strings.xml
2>Starting deploy VisualStudio_android-23_x86_phone ...
2>Starting emulator VisualStudio_android-23_x86_phone ...
2>C:\PROGRA~2\Android\ANDROI~1\tools\emulator.EXE -partition-size 512 -no-boot-anim -avd VisualStudio_android-23_x86_phone -prop monodroid.avdname=VisualStudio_android-23_x86_phone
2>PANIC: Cannot find AVD system path. Please define ANDROID_SDK_ROOT
2>Emulator VisualStudio_android-23_x86_phone cannot be started.
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
______________________________________________________________________________________________________________________________

After looking for "Cannot find AVD system path. Please define ANDROID_SDK_ROOT" on Google, I thought I may have to set up an environment variable. So I added thid to the Path list in System Environmental Variable "C:\Users\soume\.android\avd". However, the error has not changed.

Please suggest what is wrong and how to fix this issue.

Thanks in advance.
Android

Avatar of undefined
Last Comment
Soumen Roy
ASKER CERTIFIED SOLUTION
Avatar of Jackie Man
Jackie Man
Flag of Hong Kong image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Soumen Roy
Soumen Roy
Flag of India image

ASKER

User generated imageI am using Visual Studio Community Edition 2017 on Windows 10 Home Edition. I have opened the Android Virtual Device Manager and see 4 devices listed here. Do I delete all four of them?
Avatar of Soumen Roy
Soumen Roy
Flag of India image

ASKER

Thank you. Got it working.
Android
Android

Android is a mobile operating system developed by Google, based on the Linux kernel and designed primarily for touchscreen mobile devices such as smartphones and tablets. Android's user interface is based on direct manipulation, using touch gestures that loosely correspond to real-world actions, such as swiping, tapping and pinching, to manipulate on-screen objects, along with a virtual keyboard for text input. In addition to touchscreen devices, variants of Android are also used on notebooks, game consoles, digital cameras, televisions, automobiles and other electronics. Applications are usually developed in Java programming language using the Android software development kit (SDK), but other development environments are also available, including Delphi, Ruby and Visual Studio (using C++).

7K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo