-
Notifications
You must be signed in to change notification settings - Fork 107
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
Card Scanner Issue #55
Comments
|
I tried this but still getting same error even I tried the same ext.kotlin version as well that's used in the github demo project but nothing happened and got the same exception. C:\src\flutter.pub-cache\hosted\pub.dartlang.org\card_scanner-1.0.1-prerelease\android\src\main\java\com\nateshmbhat\card_scanner\CardScannerCameraActivity.kt: (50, 26): Type mismatch: inferred type is CardScannerOptions? but CardScannerOptions was expected FAILURE: Build failed with an exception.
BUILD FAILED in 1m 43s |
same here, any solution? |
I have added the pre release version of Card Scanner like this card_scanner: ^1.0.1-prerelease but the project is not compiling successfully and throws an exception. My flutter version is 2.2.3 and dart version is 2.13.4.
The first exception was thrown is related to min sdk version but then I changed the minSdkVersion 21 in android -> app ->src -> builde.gradle & as well as the targetSdkVersion is 30. After that I again tried to run the project but it throws an exception given below.
FAILURE: Build failed with an exception.
Execution failed for task ':card_scanner:compileDebugKotlin'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 49s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
The version details are as followed.
android {
compileSdkVersion 30
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
buildscript {
ext.kotlin_version = '1.3.50'
repositories {
google()
jcenter()
}
}
Flutter 2.2.3
Dart 2.13.4
Please help me out I've tried everything but no use.
Thanks
The text was updated successfully, but these errors were encountered: