Android sdk: tools\android.bat the system can't find the file specified

1.6k views Asked by At

I just downloaded android SDK manager (again...) and installed it on my machine, because I want to use Adnroid Studio. I also installed JAVA JDK (8.0.31). java -version command in cmd returns:

java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

When I try to run android SDK manager I get the message:

   Failed to execute tools\android.bat:,error 2 
   The system cannot find the file specified.

Also, when I run the AVD manager I get the error:

 Failed to execute tools\android.bat:, error 5
 Access id denied.

I made sure that the android.bat file exists in the tools folder, tried to run it directly as an Admin, but it didn't help.
I used the call command in CMD to run android.bat, and this is what I get:
enter image description here

It was working for me a few month ago, but I don't understand what has changed... I searched the web for an answer, but couldn't find one. I'm losing hope. so, if you you can help, I will be grateful.
Thanks!

0

There are 0 answers