Problem with PhoneGap

2

How can I solve my problem?

I type:

C:\Users\Micro>cd MyApp

C:\Users\Micro\MyApp>phonegap run android

Then it appears:

[phonegap] executing 'cordova run android' ...
Error: Failed to find 'ANDROID_HOME' environment variable. Try setting setting
it manually.
Failed to find 'android' command in your 'PATH'. Try uptade your 'PATH' to
include path to valid SDK directory. 

C:\Users\Micro\MyApp>
    
asked by anonymous 01.08.2016 / 04:53

1 answer

0

You need to add the ANDROID_HOME variable to the system.

Open PowerShell and type the following:

[Environment]::SetEnvironmentVariable("ANDROID_HOME", "C:\ installation location \android-sdk", "User")

(Do not forget to restart the command line from where you invoke the phonegap after creating the variable)

    
01.08.2016 / 16:57