Phonegap 3 Android Deployment / Installation Error

I just installed PhoneGap on my computer running Windows 8. When I try to deploy my application on emulated Android, it gives 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 this error means?

+6
source share
1 answer

I had the same problem.

You need to create a new environment variable called "ANDROID_HOME".

The value of 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 run the emulator. Then you can install your application.

Check out this link:

http://docs.phonegap.com/en/3.0.0rc1/guide_platforms_android_index.md.html#Android%20Platform%20Guide

Hope this helps you.

+8
source

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


All Articles