I\'m struggling with my phonegap setup and building my first app.
I created a hello1 project. I added the android project
Platform android al
Just reopening the command line fixed it.
$ cordova platforms remove android
$ cordova platforms add android@3.7.1
I am using cordova 3.5.0 which by default has target sdk as 19. You can install cordova 3.5.0 using
npm install -g cordova@3.5.0-0.2.6
For other versions of Cordova if you want to manually edit it you have to change this in AndroidManifest.xml file present in yourapplication/platfomrs/android.
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="19" />
Steps:
It works for me.
My problem got solved after installing SDK Platform of Andriod 5.1.1 (API 22) from Andriod Manager.
Change these two. I din't try it for lower versions but this worked for me in upper versions
target=android-22<br>
This should be changed in two files like below:
target=android-19<br>
Location of the two files:
myApp/platforms/android/project.properties
myApp/platforms/android/CordovaLib/project.properties