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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With