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

Error when building for Android (1.0.1 version) #49

Open
Babiosik opened this issue May 5, 2021 · 10 comments
Open

Error when building for Android (1.0.1 version) #49

Babiosik opened this issue May 5, 2021 · 10 comments

Comments

@Babiosik
Copy link

Babiosik commented May 5, 2021

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.

  • 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

@seifkh97
Copy link

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

@CesarArellano
Copy link

CesarArellano commented Aug 18, 2021

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
Copy link

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
Copy link

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

@nateshmbhat
Copy link
Owner

Can you raise a PR for this issue? @CesarArellano

@CesarArellano
Copy link

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

@nateshmbhat
Copy link
Owner

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

Yes please 😅

@CesarArellano
Copy link

@nateshmbhat
image

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

@nateshmbhat
Copy link
Owner

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

@JonathanAJ
Copy link

@CesarArellano make pulll request in this official repository, please

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

6 participants