Open Div-47 opened 3 years ago
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'
I have faced the same issue
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
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
FAILURE: Build failed with an exception.
Compilation error. See log for more details
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
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.
Execution failed for task ':card_scanner:compileReleaseKotlin'.