AmolGangadhare / flutter_barcode_scanner

Barcode scanner plugin for flutter. Supports barcode scanning for Android and iOS
https://pub.dev/packages/flutter_barcode_scanner
MIT License
382 stars 507 forks source link

Could not resolve com.google.android.gms:play-services-vision-common: #268

Open nirzondivine192 opened 2 years ago

nirzondivine192 commented 2 years ago

I am trying to add flutter_barcode_scanner package to my flutter project but for the last two days, I am getting errors in my current code and don't know how to fix it. trying hard but nothing happened in the right way.

How to resolved this problem FAILURE: Build failed with an exception.

What went wrong: Could not determine the dependencies of task ':app:preDebugBuild'.

Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'. Could not resolve com.google.android.gms:play-services-vision-common:[19.0.0]. Required by: project :app > project :flutter_barcode_scanner > com.google.android.gms:play-services-vision:19.0.0 > Failed to list versions for com.google.android.gms:play-services-vision-common. > Unable to load Maven meta-data from https://google.bintray.com/exoplayer/com/google/android/gms/play-services-vision-common/maven-metadata.xml. > Could not get resource 'https://google.bintray.com/exoplayer/com/google/android/gms/play-services-vision-common/maven-metadata.xml'. > Could not GET 'https://google.bintray.com/exoplayer/com/google/android/gms/play-services-vision-common/maven-metadata.xml'. Received status code 502 from server: Bad Gateway