nateshmbhat / card-scanner-flutter

A flutter package for Fast, Accurate and Secure Credit card & Debit card scanning
https://pub.dev/packages/card_scanner
GNU General Public License v3.0
106 stars 102 forks source link

Error when building for Android (1.0.1 version) #49

Open Babiosik opened 3 years ago

Babiosik commented 3 years ago

When building for Android I get the following error message:

e: \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 e: \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: \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.

BUILD FAILED in 1m 47s Exception: Gradle task assembleDebug failed with exit code 1

seifkh97 commented 3 years ago

Same problem even version 0.2.2 have the same issue, pls help!!!!!!!!!!1

CesarArellano commented 3 years ago

I could solve this problem guys, I used a fork from one of the creators and I uploaded it in my Pub Account: https://pub.dev/packages/credit_card_scanner/

RicharC293 commented 2 years ago

I have the same problem with version card_scanner: ^1.0.1-prerelease The solution of @CesarArellano is working for my case, but I considere that is neccesary solve this issue in parent package.

CesarArellano commented 2 years ago

@RicharC293 I agree with you completely, I hope they solve it soon.

nateshmbhat commented 2 years ago

Can you raise a PR for this issue? @CesarArellano

CesarArellano commented 2 years ago

@nateshmbhat Of course, with pleasure, give the permission and I will do it 😁

nateshmbhat commented 2 years ago

@nateshmbhat Of course, with pleasure, give the permission and I will do it 😁

Yes please 😅

CesarArellano commented 2 years ago

@nateshmbhat
image

I try to push, but it won't let me

nateshmbhat commented 2 years ago

@CesarArellano You can't push directly, you have to raise a Pull request

JonathanAJ commented 2 years ago

@CesarArellano make pulll request in this official repository, please