layout: post author:
name: Joe Bowser
url: https://twitter.com/infil00p
title: "Cordova Android 5.0.0" categories: announcements
We are happy to announce that Cordova Android 5.0.0 has been released.
With this release, there is now support for Android Marshmallow permission checking in plugins. Due to the nature of the recent Android changes, the major version has been incremented to reflect the new API changes. Only plugins that use certain permissions as defined by Google are affected by this change. The following core plugins needed to be updated:
cordova-plugin-cameracordova-plugin-geolocationcordova-plugin-contactscordova-plugin-filecordova-plugin-mediaWe are in the process of releasing these plugins to npm. If you decide to update to cordova-android@5.0.0 before we release the plugins, please install these updated plugins via git for now.
cordova plugin add https://github.com/apache/cordova-plugin-camera.git
Information on how to use the new Android Permission APIs can be found in the Cordova documentation, which can be found here.
To upgrade:
npm install -g cordova
cd my_project
cordova platform update android@5.0.0
To add it explicitly:
cordova platform add android@5.0.0
android@<4.1.0.java after renaming activitycordova-common dependencyproperties-parser to prevent failures in Node < 4.xtest-build script on windows.cordova-android no longer builds on Node 0.10 or belowCordova CLI run for Android versions 4.1.1 and lower throws errordistubutionUrl via env variable CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URLminSdkVersion to 14 if it is less than that.check_reqs failure when javac returns an extra line-debug or -releaseCordovaLib as a standard Android Librarycordova requirements android