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

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

Closed
RuanCardoso opened this issue Apr 27, 2024 · 10 comments
Closed

Comments

@RuanCardoso
Copy link

RuanCardoso commented Apr 27, 2024

Could not find com.github.chenyeju295.AndroidUSBCamera:libausbc:3.3.6.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/github/chenyeju295/AndroidUSBCamera/libausbc/3.3.6/libausbc-3.3.6.pom
- https://repo.maven.apache.org/maven2/com/github/chenyeju295/AndroidUSBCamera/libausbc/3.3.6/libausbc-3.3.6.pom
- https://storage.googleapis.com/download.flutter.io/com/github/chenyeju295/AndroidUSBCamera/libausbc/3.3.6/libausbc-3.3.6.pom
Required by:
project :app > project :flutter_uvc_camera
Could not find com.github.chenyeju295.AndroidUSBCamera:libuvc:3.3.6.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/github/chenyeju295/AndroidUSBCamera/libuvc/3.3.6/libuvc-3.3.6.pom
- https://repo.maven.apache.org/maven2/com/github/chenyeju295/AndroidUSBCamera/libuvc/3.3.6/libuvc-3.3.6.pom
- https://storage.googleapis.com/download.flutter.io/com/github/chenyeju295/AndroidUSBCamera/libuvc/3.3.6/libuvc-3.3.6.pom

How to fix this?

[UPDATE 29/04/2023]

  • I posted the solution in the comments below.
@RuanCardoso RuanCardoso changed the title Not found error in build. Could not find com.github.chenyeju295.AndroidUSBCamera:libausbc:3.3.6. Apr 27, 2024
@JyoHuang
Copy link

encountered the same issue

@RuanCardoso
Copy link
Author

RuanCardoso commented Apr 29, 2024

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
Copy link

JyoHuang commented Apr 29, 2024

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
Copy link
Author

RuanCardoso commented Apr 29, 2024

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
Copy link
Owner

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

@chenyeju295
Copy link
Owner

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

@vaishnavijlk
Copy link

vaishnavijlk commented May 6, 2024

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
Copy link
Owner

@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
Copy link

@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
Copy link
Owner

@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

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

4 participants