gdelataillade / alarm

A Flutter plugin to easily manage alarms on iOS and Android
https://pub.dev/packages/alarm
MIT License
132 stars 86 forks source link

v4.0.6 does not compile for Android #260

Closed orkun1675 closed 4 weeks ago

orkun1675 commented 1 month ago

Seems like a import issue:

Launching lib/main.dart on sdk gphone64 arm64 in debug mode...
e: file:///Users/.../.pub-cache/hosted/pub.dev/alarm-4.0.6/android/src/main/kotlin/com/gdelataillade/alarm/alarm/AlarmService.kt:58:35 Unresolved reference: NotificationHandler

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':alarm:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details
gdelataillade commented 1 month ago

Try this:

cd android
./gradlew clean
flutter clean
flutter pub get
orkun1675 commented 4 weeks ago

Resolved, thanks!