Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

cordova-plugin-camera clash with this plugin #137

Open
Singosgu opened this issue Dec 2, 2021 · 2 comments
Open

cordova-plugin-camera clash with this plugin #137

Singosgu opened this issue Dec 2, 2021 · 2 comments

Comments

@Singosgu
Copy link

Singosgu commented Dec 2, 2021

If you use

    cordova plugin add cordova-plugin-camera

to install camera plugin . It will clash with this plugin .
The reason is this camera plugin use too old api of android .

You must fix cordova-plugin-camera|
FileProvider.java
Line 21 : "android.support.v4.content.FileProvider" Change To "androidx.core.content.FileProvider"
CameraLauncher.java
Line 42 : "android.support.v4.content.FileProvider" Change To "androidx.core.content.FileProvider"

@darryncampbell
Copy link
Owner

Hi,

I can't speak for the camera plugin but I do have a note in the readme from years ago that states "If you are installing this plugin along with cordova-plugin-camera you MUST install cordova-plugin-camera first."

That note would have been written before this plugin supported Android X. Please note that:

  • For Android X Support please use version >= 2.x.x
  • For Android Support Library please use version 1.3.x

So, perhaps you also need to use the older version of this plugin prior to Android X support.

Hope that helps

@Singosgu
Copy link
Author

Singosgu commented Dec 3, 2021

Hi,

Yes, I c .

if you use

cordova plugin add cordova-plugin-camera

to install camera , it will clash with this plugin.

if

cordova plugin add https://github.com/apache/cordova-plugin-camera.git

it's ok . no clash .

it seems cordova initial plugin not update to latest .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants