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

not compiling in android , flutter #52

Open
Div-47 opened this issue Jun 7, 2021 · 5 comments
Open

not compiling in android , flutter #52

Div-47 opened this issue Jun 7, 2021 · 5 comments

Comments

@Div-47
Copy link

Div-47 commented Jun 7, 2021

below is the issue

                                                         ^

e: /Users/geitpl/.pub-cache/hosted/pub.dartlang.org/card_scanner-0.2.2/android/src/main/java/com/nateshmbhat/card_scanner/CardScannerCameraActivity.kt: (50, 26): Type mismatch: inferred type is CardScannerOptions? but CardScannerOptions was expected
e: /Users/geitpl/.pub-cache/hosted/pub.dartlang.org/card_scanner-0.2.2/android/src/main/java/com/nateshmbhat/card_scanner/scanner_core/models/CardScannerOptions.kt: (27, 44): Type mismatch: inferred type is ArrayList<String!>? but List was expected
e: /Users/geitpl/.pub-cache/hosted/pub.dartlang.org/card_scanner-0.2.2/android/src/main/java/com/nateshmbhat/card_scanner/scanner_core/models/CardScannerOptions.kt: (33, 45): Type mismatch: inferred type is ArrayList<String!>? but List was expected

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':card_scanner:compileReleaseKotlin'.

Compilation error. See log for more details

@ervinod
Copy link

ervinod commented Jul 8, 2021

getting above error while compiling
card_scanner: ^1.0.1-prerelease

compileSdkVersion 30
classpath 'com.android.tools.build:gradle:4.1.3'
ext.kotlin_version = '1.4.21'

@Faiza-Farooqui
Copy link

I have faced the same issue

@ervinod
Copy link

ervinod commented Jul 19, 2021

I have faced the same issue

Use below version of card_scanner plugin in which i have solved the above issue.
(add in pubspec.yaml)

card_scanner:
git:
url: https://github.com/ervinod/card-scanner-flutter.git

@ZoraizEjaz
Copy link

I am also getting the same issue. Update the package didn't solve the issue as well.
=> card_scanner: ^1.0.0-prerelease
=> ext.kotlin_version = '1.4.21'
=> classpath 'com.android.tools.build:gradle:4.1.3'

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
e: /Users/revglue/Library/flutter/.pub-cache/hosted/pub.dartlang.org/card_scanner-1.0.1-prerelease/android/src/main/java/com/nateshmbhat/card_scanner/CardScannerCameraActivity.kt: (50, 33): Type mismatch: inferred type is CardScannerOptions? but CardScannerOptions was expected
e: /Users/revglue/Library/flutter/.pub-cache/hosted/pub.dartlang.org/card_scanner-1.0.1-prerelease/android/src/main/java/com/nateshmbhat/card_scanner/scanner_core/models/CardScannerOptions.kt: (27, 44): Type mismatch: inferred type is ArrayList<String!>? but List was expected
e: /Users/revglue/Library/flutter/.pub-cache/hosted/pub.dartlang.org/card_scanner-1.0.1-prerelease/android/src/main/java/com/nateshmbhat/card_scanner/scanner_core/models/CardScannerOptions.kt: (33, 45): Type mismatch: inferred type is ArrayList<String!>? but List was expected

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':card_scanner:compileDebugKotlin'.

Compilation error. See log for more details

@ZoraizEjaz
Copy link

getting above error while compiling
card_scanner: ^1.0.1-prerelease

compileSdkVersion 30
classpath 'com.android.tools.build:gradle:4.1.3'
ext.kotlin_version = '1.4.21'

Didn't work for me

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