cordova platform add android not working while listing Android targets

后端 未结 12 1766
野趣味
野趣味 2020-11-29 16:48

I got problem when i want to add an android platform to my phoneGap application. I got this message in my CLI when i execute the command cordova platform add android :

12条回答
  •  遥遥无期
    2020-11-29 17:41

    We have a list of solutions here, so I add my one. That was not clear for me until I just try. You should add %ANT_HOME%\bin;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools to USER PATH variable, not to a System one. System PATH variable will automatically concatenate the USER PATH variable and translate variables to its value. Hope that helps somebody. P.S. My OS is Win 7x64

提交回复
热议问题