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

flutter_credit_card:compileDebugKotlin #173

Open
liukeyankevin opened this issue Oct 10, 2024 · 1 comment
Open

flutter_credit_card:compileDebugKotlin #173

liukeyankevin opened this issue Oct 10, 2024 · 1 comment

Comments

@liukeyankevin
Copy link

liukeyankevin commented Oct 10, 2024

flutter 3.24
flutter_credit_card: ^4.0.1

flutter_credit_card-4.0.1/android/src/main/kotlin/com/simform/flutter_credit_card/gyroscope/GyroscopeStreamHandler.kt:18:35 Property delegate must have a 'getValue(GyroscopeStreamHandler, KProperty<>)' method. None of the following functions is suitable:
public inline operator fun Lazy<Sensor?>.getValue(thisRef: Any?, property: KProperty<
>): Sensor? defined in kotlin

FAILURE: Build completed with 2 failures.

What went wrong:
Execution failed for task ':flutter_credit_card:compileDebugKotlin'.

A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
Compilation error. See log for more details

@talhakosen
Copy link

For temp soluyion :

Go to GyroscopeStreamHandler.kt

make the return type nullable

private val sensor: Sensor? by lazy {
sensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE)
}

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

2 participants