When i click on AVD Manager, i am getting an error as in the screenshot below.
Referred to the following links. But none of the solution works for me.
Failed
I got the same problem and I found where it's come from. I know it's a 2 year question, but the problem still remain the same for some people.
Cannot run program "C:\Users\Hp\AppData\Local\Android\Sdk\tools\android.bat
It will happen when we re-install android studio for some reasons. I even re-installed it 4 times. Problem came at the first time I re-installed. I tried to re-install again and again but the problem remain the same.
Finally I open C:\Users\Hp\AppData that actually hidden. And in the next folder \local\Android\Sdk, now I found some folder Sdk, Sdk1, Sdk2, and Sdk3.
Now I remember, as I re-installed it 4 times, that's why I have four folders. I remove ( not actually remove, but rename it with additional XX at the end of folder name) Sdk folder and change Sdk3 to Sdk. Now everything is working fine.
Why? because my last re-install create Sdk3 folder that contain android.bat required for the main program where no more exist in the first Sdk folder.
Before I got this as well :
Error:Execution failed for task ':app:compileDebugAidl'. > java.lang.IllegalStateException: aidl is missing
And now it's missing and the problem is solved.
If you happen got the same problem with me. hope it could help you.