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

Type mismatch: inferred type is String? but String was expected (Android) #3

Open
iliyass-zamouri opened this issue Dec 9, 2021 · 2 comments

Comments

@iliyass-zamouri
Copy link

Launching lib/main.dart on Android SDK built for x86 in debug mode...
lib/main.dart:1
e: /Users/mac/development/flutter/.pub-cache/hosted/pub.dartlang.org/facebook_event-0.0.6/android/src/main/kotlin/com/faisal/flutter/facebook_event/FacebookEventPlugin.kt: (244, 31): Type mismatch: inferred type is String? but String was expected
e: /Users/mac/development/flutter/.pub-cache/hosted/pub.dartlang.org/facebook_event-0.0.6/android/src/main/kotlin/com/faisal/flutter/facebook_event/FacebookEventPlugin.kt: (246, 31): Type mismatch: inferred type is String? but String was expected

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':facebook_event: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 19s

@vantutrieu97
Copy link

let try using ! after your string value

@AliPunjabi
Copy link

any solution?

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

3 participants