chenyeju295 / flutter_uvc_camera

Flutter package
https://pub.dev/packages/flutter_uvc_camera
MIT License
10 stars 6 forks source link

Could not find com.github.chenyeju295.AndroidUSBCamera:libausbc:3.3.6. #3

Closed RuanCardoso closed 4 months ago

RuanCardoso commented 5 months ago

Could not find com.github.chenyeju295.AndroidUSBCamera:libausbc:3.3.6. Searched in the following locations:

How to fix this?

[UPDATE 29/04/2023]

JyoHuang commented 5 months ago

encountered the same issue

RuanCardoso commented 5 months ago

encountered the same issue

The solution is:

Download this: https://github.com/chenyeju295/flutter_uvc_camera

work with the example project found inside the "example" folder, modify it and be happy.

Obs:

Don't move the "example" project, it must be a child of flutter_uvc_camera, just modify it.

If you want to change the directory of the child project, you must modify the path in pubspec.yaml

flutter_uvc_camera:
    path: ../
JyoHuang commented 5 months ago

Excuse me, Is there any way not to rely on this folder? For example, copying some folder files or something like that? thank you very much

RuanCardoso commented 5 months ago

Excuse me, Is there any way not to rely on this folder? For example, copying some folder files or something like that? thank you very much

You can use your own project, just point the library path correctly in pubspec.yaml

flutter_uvc_camera:
    path: **YOUR_PATH** << add this line and put the **PATH**.

Download the lib here: https://github.com/chenyeju295/flutter_uvc_camera

chenyeju295 commented 4 months ago

@JyoHuang @RuanCardoso
Add the repositories library address to your main Android project。 maven { url "https://jitpack.io" }

image
chenyeju295 commented 4 months ago

It was an oversight on my part. I'll update the README.md

vaishnavijlk commented 4 months ago
Screenshot 2024-05-06 at 11 24 18 AM

@chenyeju295 @JyoHuang @RuanCardoso I'm facing this issue, how do I use this plugin? Can anyone help ?

chenyeju295 commented 4 months ago

@vaishnavijlk It looks like the referenced packages are conflicting, you can remove the reference to"jiangdongguo.AndroidUSBCamera:3.3.3" . which I forked from it , upgraded to 3.3.6 to support Android 14

vaishnavijlk commented 4 months ago

@chenyeju295, I followed the instructions from https://pub.dev/packages/flutter_uvc_camera and trying to integrate this in my project. I'm not able to run the app, I'm still getting the errors which I attached above. I'm using flutter_uvc_camera: ^0.0.2

chenyeju295 commented 4 months ago

@vaishnavijlk There may be other packages in your project that reference AndroidUSBCamera:libausbc:3.3.3, you can either do a global search to find them and remove the reference or try replacing the implementation with compileOnly.

image