card-scanner-flutter icon indicating copy to clipboard operation
card-scanner-flutter copied to clipboard

Error when building for Android (1.0.1 version)

Open Babiosik opened this issue 3 years ago • 10 comments

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<String> 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<String> 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

  • 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 1m 47s Exception: Gradle task assembleDebug failed with exit code 1

Babiosik avatar May 05 '21 18:05 Babiosik

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

seifkh97 avatar May 27 '21 05:05 seifkh97

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/

CesarArellano avatar Aug 18 '21 16:08 CesarArellano

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.

RicharC293 avatar Nov 22 '21 18:11 RicharC293

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

CesarArellano avatar Nov 22 '21 18:11 CesarArellano

Can you raise a PR for this issue? @CesarArellano

nateshmbhat avatar Nov 23 '21 05:11 nateshmbhat

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

CesarArellano avatar Nov 23 '21 05:11 CesarArellano

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

Yes please 😅

nateshmbhat avatar Nov 23 '21 05:11 nateshmbhat

@nateshmbhat
image

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

CesarArellano avatar Nov 24 '21 18:11 CesarArellano

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

nateshmbhat avatar Nov 25 '21 08:11 nateshmbhat

@CesarArellano make pulll request in this official repository, please

JonathanAJ avatar Mar 04 '22 19:03 JonathanAJ