Phonegap application does not install on the device

1

Working with Phonegap / Cordova and finding documentation for it in Portuguese is very complicated, so asking questions about issues you face will help enrich your content.

My problem is when running the phonegap run android --device command on the CLI, the device is connected to the computer, but Phonegap displays error, not finding the device it changes to the emulator and has install in the emulator, when executed the command without the --device parameter.

I found in the English Stack a suggestion that was unsuccessfully applied.

If someone has already experienced this and has another solution, I appreciate it. Some device settings and versions to make troubleshooting easier.

  • Smartphone Samsung GT-S5312B Android 4.1.2
  • Kies 2.6.2.14014_5
  • Phonegap Version 3.3.0-0.19.4
  • Cordova Version 3.3.1-0.1.2
asked by anonymous 05.02.2014 / 02:09

1 answer

1

The error quoted above occurs when the Apks for the Android project are not found. In some cases after a clean and build using Eclipse, it deletes some important Cordova files (aka Phonegap).

How to fix using Phonegap (for Phonegap replace cordova with phonegap ):

If the apks are not found in the SeuProjeto/platforms/android/bin path, execute n CLI the command cordova build android , if apks are not generated use the command cordova update android

2º Build your application to test, at this point the build will already happen without errors.

    
18.02.2014 / 20:24