juliansteenbakker / mobile_scanner

A universal scanner for Flutter based on MLKit. Uses CameraX on Android and AVFoundation on iOS.
BSD 3-Clause "New" or "Revised" License
744 stars 444 forks source link

App is not running after adding the package #1034

Closed OmarAbdAlbaqi closed 3 weeks ago

OmarAbdAlbaqi commented 3 weeks ago

I am facing this error: FAILURE: Build failed with an exception.

BUILD FAILED in 5s Error: Gradle task assembleDebug failed with exit code 1

just after adding the package

OmarAbdAlbaqi commented 3 weeks ago

seems the problem is on Android only i tried the package on IOS and its working well what should i do for android version to make it working ?

Dohmanlechx commented 3 weeks ago

Have you tried flutter clean? Had some similar issues after updating to 5.0.1, but that command helped me.

OmarAbdAlbaqi commented 3 weeks ago

yes i tried many time i tried move back to old versions like 4 same same

GH20223 commented 3 weeks ago

same here ... any solutions? flutter clean did not help

FAILURE: Build failed with an exception.

GH20223 commented 3 weeks ago

Created a new flutter app: same error. Mac M1 Sonoma 14.4.1 Android Studio Iguana | 2023.2.1 Patch 2 Flutter 3.19.6 Dart 3.3.4 DevTools 2.31.1

edibesad commented 3 weeks ago

same here. I tried to update all of my packages but nothing is changed

edit: this works https://github.com/juliansteenbakker/mobile_scanner/issues/957#issuecomment-1939228032

OmarAbdAlbaqi commented 3 weeks ago

yes it works @edibesad Thank you so much

navaronbracke commented 3 weeks ago

This is a dependency issue on your side. As of version 4.0.0 you need to upgrade to Java 17 / Android SDK 34 as noted in the changelog: https://github.com/juliansteenbakker/mobile_scanner/blob/master/CHANGELOG.md#400