Closed OmarAbdAlbaqi closed 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 ?
Have you tried flutter clean
? Had some similar issues after updating to 5.0.1
, but that command helped me.
yes i tried many time i tried move back to old versions like 4 same same
same here ... any solutions? flutter clean did not help
FAILURE: Build failed with an exception.
A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable Duplicate class kotlin.collections.jdk8.CollectionsJDK8Kt found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10) Duplicate class kotlin.internal.jdk7.JDK7PlatformImplementations found in modules jetified-kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and jetified-kotlin-stdlib-jdk7-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10)
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
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
yes it works @edibesad Thank you so much
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
I am facing this error: FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:checkDebugDuplicateClasses'.
Go to the documentation to learn how to Fix dependency resolution errors.
Try:
Get more help at https://help.gradle.org
BUILD FAILED in 5s Error: Gradle task assembleDebug failed with exit code 1
just after adding the package