Cordova / Ionic build error (sometimes): don't have required environment

前端 未结 3 1256

I have just started dabbling in Cordova / Ionic to make Android / iOS apps with HTML5 / js, and so far I have gotten sample / tutorial apps to work sometimes, but not every

3条回答
  •  不思量自难忘°
    2020-12-06 18:42

    Copy and paste this to your environment variable path:

    %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\

    Then open Android Studio or Eclipse and make a rebuild to some project into the environment and try to build your Cordova project. Hope it will help. That solved the problem for me.

提交回复
热议问题