Dave
Dave

Reputation: 303

Update Cordova Project Android Platform

I am using Cordova and I need android version 6.3.0 as required by a plugin that I want to use.

Installing "cordova-plugin-camera" at "4.0.3" for android
Plugin doesn't support this project's cordova-android version. cordova-android: 6.1.2, failed version requirement: >=6.3.0

My problem is how can I update my android version, I try to use this code

cordova platform add [email protected]

Still the version is 6.1.2 when I try to build

enter image description here

Upvotes: 0

Views: 218

Answers (1)

Sandeep K
Sandeep K

Reputation: 26

Latest cli you can use in Phonegap Build is 7.1.0, you can set it with:

<preference name="phonegap-version" value="cli-7.1.0" />

That will use cordova-android 6.3.0 as platform, so the plugin should install fine.

Upvotes: 1

Related Questions