Reputation: 79
i´m trying to run my cordova application on my device, i already add the platform android to my project. i´m doing all trought cmd. but i got an error as you can see on the following picture.
Can you tell me what´s wrong? how can i fix it please?
i can run on browser with "cordova run browser", but it doesn´t work for android. it show me this error, and i can´t find a solution.
Upvotes: 0
Views: 311
Reputation: 3473
for Windows 7 Computer -> (rightclick) properties -> Advanced System setting. At Advanced tab you will see Environment variables (open it)
In the system properties window click the environment variables button.
Select the PATH variable from the System variables section. Select the Edit button. You need to add the path to your Android SDK platform-tools and tools directory. For Example: D:\adt-bundle-windows-x86_64-20130219\sdk\platform-tools;D:\adt-bundle-windows-x86_64-20130219\sdk\tools Save your Edit. Close the Environment Variable dialog.
Refer here :
See here for complete setup of environment
Upvotes: 0
Reputation: 29285
Can you tell me what´s wrong? how can i fix it please?
Cordova couldn't find Android SDK home in your computer. If you've already installed SDK, so make sure environmental variable ANDROID_HOME
points exactly to the root of SDK directory.
i can run on browser with "cordova run browser",
No you can't run Android apps on browsers. You have two options:
run --emulator
run --device
More information:
Upvotes: 1