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

前端 未结 5 1732
庸人自扰
庸人自扰 2020-12-03 22:05

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 f

相关标签:
5条回答
  • 2020-12-03 22:41

    A patch has already been pushed to Android SDK Build tools. Version 24.0.1 Please update using SDK Manager.

    0 讨论(0)
  • 2020-12-03 22:42

    It has amazingly worked for me. My mistake was that I set the path to

    C:\Program Files\Java\jdk1.7.0_75\bin
    

    but after reading @committeandroidere I changed my path to

    %SystemRoot%\system32;C:\Program Files\Java\jdk1.7.0_75\bin
    

    and it worked.

    0 讨论(0)
  • 2020-12-03 22:49

    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;

    0 讨论(0)
  • 2020-12-03 22:49

    This will be resolved if you grab the latest SDK with tools v24.0.2, which you can get here. This is actually a different problem from what was fixed in v24.0.1.

    If you need fix yourself NOW and don't want to download a whole SDK, take a look at

    https://code.google.com/p/android/issues/detail?id=82388#c33

    Additionally, a future patch of Android Studio will also resolve this. Sorry for any inconvenience already caused, however.

    0 讨论(0)
  • 2020-12-03 23:04

    i was also facing the same issue after updating to Android Studio 1.0. I spent like 10 hours trying to fix it but finally found solution. So I am going to paste the temporary solution here in case anyone is facing the same problem.

    It seems the issue was not due to Android Studio or gradle . It was due to new Android SDK Tools version 24.0.0 because it was working on computer's having Android SDK Tools version 23.0.5. So in order to solve it. Please follow this simple procedure:

       * Close Android Studio
       * Download http://goo.gl/v0UPm6
       * goto \sdk
       * rename 'tools' to 'tools1' (In case you need backup)
       * extract this zip to \sdk
       * it will make tools folder in \sdk
       * restart studio and errors will be gone
    

    Credit goes to the person who figured it out. Thanks Man :)

    0 讨论(0)
提交回复
热议问题