Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not install The Camera Package while using the Camera ML Package #12

Closed
Loopex2019 opened this issue Apr 23, 2019 · 11 comments
Closed

Comments

@Loopex2019
Copy link

Whenever i install the camera package there is an error occurs related to the Camera ML Package:

Because flutter_camera_ml_vision 1.2.0 depends on camera from git and no versions of flutter_camera_ml_vision match >1.2.0 <2.0.0, flutter_camera_ml_vision ^1.2.0 requires camera from git.

So, because looper_2019 depends on both flutter_camera_ml_vision ^1.2.0 and camera from hosted, version solving failed.
pub get failed (1)
exit code 1

@jaumard
Copy link
Collaborator

jaumard commented Apr 23, 2019

The flutter_camera_ml_vision is using the camera package, so you can't add it again as the error message said, but you should be able to use it a transitive dependency :) until the PR made to camera plugin is merge, we can't used a specific version and have to use the git hosted version

@Loopex2019
Copy link
Author

Thanks for your answer but what do you mean with transitive dependency

@jaumard
Copy link
Collaborator

jaumard commented Apr 23, 2019

I mean you don't need to add it on your pubspec.yaml at all, or if you want to have you need to put it under dependency_overrides with

camera: 
    git:
      url: [email protected]:jaumard/plugins.git
      ref: feature/camera_api_16_installation
      path: packages/camera

@Loopex2019
Copy link
Author

Okay thanks for that I will try soon

@Loopex2019
Copy link
Author

Hi there. Where is that : dependency_overrides in pupspec.yaml file to add the camera extension?

@jaumard
Copy link
Collaborator

jaumard commented Apr 29, 2019

@Loopex2019
Copy link
Author

I tried it but there is an another Error occurs to me /
Running "flutter packages get" in looper_2019...

Git error. Command: git rev-list --max-count=1 feature/camera_api_16_installation

fatal: ambiguous argument 'feature/camera_api_16_installation': unknown revision or path not in the working tree.

And this the code i have written
image

And the Error is here
image

@jaumard
Copy link
Collaborator

jaumard commented Apr 29, 2019

Ho maybe you need the https url version:

camera: 
    git:
      url: https://github.com/jaumard/plugins.git
      ref: feature/camera_api_16_installation
      path: packages/camera

Try it might be better

@Loopex2019
Copy link
Author

Thanks you very much it works good . But i have a Question. Does is always access the latest Version of the Package or do i have to specify it ?

@jaumard
Copy link
Collaborator

jaumard commented Apr 29, 2019

I point to flutter/plugins#1482 which offer the ability to install under api 21 on Android, once this one is merged you'll be able to use the version you want

@Loopex2019
Copy link
Author

Okay thanks for your support

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

No branches or pull requests

2 participants