Phonegap app does not install on device

Asked

Viewed 1,289 times

1

Working with Phonegap/Ordova and finding documentation for it in Portuguese is very complicated, so asking questions about problems faced will help enrich with content.

My problem is being when executing the CLI command phonegap run android --device, the device is connected to the computer, but Phonegap shows error, when not finding the device it switches to the emulator and has install in the emulator, when executed the command without the parameter --device.

I found in Stack in English a suggestion that was applied without success.

If anyone’s been through this and you have another solution, I’d appreciate it. Some device settings and versions to make it easier to solve the problem.

  • Samsung GT-S5312B Android Smartphone 4.1.2
  • Kies 2.6.2.14014_5
  • Version of Phonegap 3.3.0-0.19.4
  • Version of Cordova 3.3.1-0.1.2
  • Did you install Kies? On my PC Samsung devices are only recognized after I install Kies. Check the Kies version as well.

  • Yes it is installed. I am installing an update, I hope you fix the error.

  • Check out the Kies version, like I told you. Because one of the versions (Kies 3) only recognizes newer device (Galaxy S4 up).

  • Kies is up to date, still not working.

  • @Lucasnunes I discovered the problem and I will answer my own question since it is a very atypical mistake.

1 answer

1


The above mentioned error occurs when no Apks are found for the Android project. In some cases after a clean and build using Eclipse, delete some important files from Cordova(aka Phonegap).

How to resolve using Phonegap(for Phonegap replace cordova for phonegap):

1º If the apks are not found on the way SeuProjeto/platforms/android/bin, execute n CLI the command cordova build android, if the apks are not generated use the command cordova update android

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.