Reputation: 8640
I've just installed PhoneGap on my Windows 8 machine. When I try to deploy my app on an emulated Android, it throws the following:
D:\>phonegap install android
[phonegap] detecting Android SDK environment...
[phonegap] using the local environment
[phonegap] trying to install app onto device
[phonegap] no device was found
[phonegap] trying to install app onto emulator
[error] An error occurred while emulating/deploying the android project.Buildfile: D:\app\platforms\andro
id\build.xml
Any idea what that error means?
Upvotes: 6
Views: 5314
Reputation: 81
I had the same problem.
You need to create a new Environment Variable called "ANDROID_HOME".
The value for this variable is your sdk location. In my case, I put: "C:\Users\Jesualdo\Desktop\sdk\sdk\tools".
And there is an important point:
First, you need to execute the emulator. Then you can install your app.
Check this link:
I hope it helps you.
Upvotes: 8