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.
Soumen RoySenior ManagerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jackie ManIT ManagerCommented:
Have you created new virtual device before you run the app?

http://stackoverflow.com/questions/41274830/panic-cannot-find-avd-system-path-please-define-android-sdk-root

1- Start your Android Studio.

2- Create a New Project to be able to create or delete virtual devices.

3- Delete any virtual devices if found.

4- and create virtual device via AVD manager
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Soumen RoySenior ManagerAuthor Commented:
AVD ManagerI 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?
0
Soumen RoySenior ManagerAuthor Commented:
Thank you. Got it working.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Android

From novice to tech pro — start learning today.