Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio Error 'reg' is not recognized as an internal or external command

Tags:

android

Hi I have just updated to the latest version of AS v1.00 release.

However when trying to run newly created project i get this error:

Error:Execution failed for task ':app:dexDebug'.

com.android.ide.common.internal.LoggedErrorException: Failed to run command: E:\Program Files (x86)\Android\sdk\build-tools\android-4.4W\dx.bat --dex --no-optimize --output C:\Users\Vilius\Desktop\AndroidProjects\voiceTest1\app\build\intermediates\dex\debug C:\Users\Vilius\Desktop\AndroidProjects\voiceTest1\app\build\intermediates\classes\debug Error Code: 255 Output: 'reg' is not recognized as an internal or external command, operable program or batch file.

Any help appreciated!

like image 522
Vil Avatar asked Dec 08 '14 21:12

Vil


People also ask

Is not recognized as an internal or external command in Android Studio?

So, all one needs to do is to open Android Studio, click on File>Settings. In the next window, under Tools, click on Terminal. Then enter the complete location to adb in the Start Directory. Restart Android Studio and your adb command should execute now.

How do you fix is not recognized as an internal or external command operable program or batch file?

You can resolve this issue in three ways: First, use the full path of the executable file to launch the program. Second, add the program path to Windows environment variables. Finally, move the files to the System32 folder.

Where is not recognized as an internal command?

The “is not recognized as an internal command” error usually occurs because the computer can't find the executable that you're asking it to launch. However, you can provide it with the full path to your executable file and it should then be able to run it without any issues. Launch a Command Prompt window on your PC.

Is not recognized as an internal or external command batch file?

If you meet the error “command is not recognized as an internal or external command, operable program or batch file” problem in Command Prompt in Windows 10, the reason may be that the Windows Environment Variables are messed up. Check what Windows Environment Variables are and how to fix this error below.


1 Answers

I have encountered the same issue. As Mr. Blurred have said you should add C:\Windows\System32 to your PATH environment variable. To do this you should open Control Panel, go to System -> Environment Variables, find PATH in System Variables and add the following entry at the beginning: %SystemRoot%\system32;

like image 156
Alex Kuzmin Avatar answered Sep 19 '22 12:09

Alex Kuzmin