Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

phonegap run android not working and no error message

I had worked with Phonegap for a period of time and it workd good but yesterday I got stuck in a problem with installing the app on my device using command line:

\>>phonegap run android  
it return
[phonegap] executing 'cordova run android'...
[phonegap] completed 'cordova run android'
and no error message

But nothing happened the app as it does not get installed in my device nor open the emulator.

I try to create new project, update Phonegap, update android platform, update SDK and uninstall the phonegap and re-install it but nothing changed.

like image 261
Yasin Mansour Avatar asked Apr 23 '15 09:04

Yasin Mansour


1 Answers

I was having the exact same problem. Adding this line to the config.xml file solved it for me:

<preference name="android-minSdkVersion" value="10" />

I found this solution after running it as a Cordova command cordova run android instead of a Phonegap command. The Cordova command gave the error below error:

Manifest merger failed : uses-sdk:minSdkVersion 7 cannot be smaller than version 10 declared in library C:\Users\ecarriger\Desktop\test\platforms\android\build\intermediates\exploded-aar\android\CordovaLib\unspecified\debug\AndroidManifest.xml

Changing the minSdkVersion to 10 in the Android manifest that the error pointed to didn't work because the run process overwrites it.

like image 193
3than Avatar answered Dec 24 '22 02:12

3than