apache / cordova-plugin-file

Apache Cordova File Plugin
https://cordova.apache.org/
Apache License 2.0
740 stars 757 forks source link

Plugin doesn't support this project's cordova-android version. cordova-android: 10.1.2, failed version requirement: >=12.0.0 Skipping 'cordova-plugin-file' for android #591

Closed richard2189 closed 9 months ago

richard2189 commented 9 months ago

Bug Report

Problem

Trying to install this plugin because it is required for cordova-plugin-advanced-http to work

What is expected to happen?

Run cordova plugin add cordova-plugin-file and it installs

What does actually happen?

I get:

Plugin doesn't support this project's cordova-android version. cordova-android: 10.1.2, failed version requirement: >=12.0.0 Skipping 'cordova-plugin-file' for android

Information

I do believe android10.1.2 is the highest level currently on cordova

Command or Code

cordova plugin add cordova-plugin-file

Environment, Platform, Device

I am running Windows 11 Cordova 11.1.0 Android Version 10.1.2

Checklist

breautek commented 9 months ago

I do believe android10.1.2 is the highest level currently on cordova

Incorrect.

As the error states, v8 of this plugin requires cordova-android@12.

cordova-android@12 is required for API 33 support which is required by https://github.com/apache/cordova-plugin-file/pull/566 due to new permissions being introduced to read media files.

So you'll need to either use an older version of this plugin, or upgrade cordova-android platform to v12. Upgrading the cordova-android@12 for API 33 support would be recommended since it will be required soon the next time you update your app on Google Play Store.