Cannot find SDK path in WebStorm 2016.3

I am trying to create a PhoneGap application using the WebStorm 2016.3 IDE.

I follow the link this link . I can create a project from the stages, but during the launch of the application I get errors. When setting up the emulator, I found that the Android SDK was not found.

I can not find how to set this path here, and the error received:

<w640 "

... and in log cat

"C:\Program Files (x86)\JetBrains\WebStorm 2016.3\bin\runnerw.exe" "C:\Users\Sa E\AppData\Roaming\npm\ionic.cmd" run --emulator android รขล“โ€” You cannot run iOS unless you are on Mac OSX. 

I tried something from Google, but the data is for the old IDE, and I do not see such parameters with my current IDE.

+5
source share
1 answer

I ran into the same problems on Windows. I added the ANDROID_HOME system variable with the address of the sdk folder. In my case, it was c:\Users\Andrew\AppData\Local\Android\sdk

After that, I restarted WebStorm and it works fine.

PS make sure you set up the project correctly. Try to create a new project with the type "PhoneGap / Cordova", then in the terminal enter the following commands:

 ionic start MyProjectName ionic serve 

If everything works at this point, continue:

 ionic platform add android ionic build android ionic emulate android 

You can use run instead of emulate if you have GenyMotion installed and running

+5
source

Source: https://habr.com/ru/post/1260449/


All Articles