Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Getting Kotlin Errors #6

Open
mono424 opened this issue Jun 27, 2021 · 0 comments
Open

Getting Kotlin Errors #6

mono424 opened this issue Jun 27, 2021 · 0 comments

Comments

@mono424
Copy link

mono424 commented Jun 27, 2021

I get the following error after trying to build. Version min sdk version is 22.

Launching lib/main.dart on sdk gphone x86 64 arm64 in debug mode...
lib/main.dart:1
e: /Users/khadim/.pub-cache/hosted/pub.dartlang.org/flutter_package_manager-0.2.0/android/src/main/kotlin/dev/wurikiji/flutter_package_manager/FlutterPackageManagerPlugin.kt: (85, 76): Type mismatch: inferred type is ApplicationInfo? but ApplicationInfo was expected
e: /Users/khadim/.pub-cache/hosted/pub.dartlang.org/flutter_package_manager-0.2.0/android/src/main/kotlin/dev/wurikiji/flutter_package_manager/FlutterPackageManagerPlugin.kt: (86, 76): Type mismatch: inferred type is String? but String was expected
e: /Users/khadim/.pub-cache/hosted/pub.dartlang.org/flutter_package_manager-0.2.0/android/src/main/kotlin/dev/wurikiji/flutter_package_manager/FlutterPackageManagerPlugin.kt: (86, 101): Type mismatch: inferred type is Drawable? but Drawable was expected

FAILURE: Build failed with an exception.


* What went wrong:
Execution failed for task ':flutter_package_manager: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 1s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant