builttoroam / device_calendar

A cross platform plugin for modifying calendars on the user's device
https://pub.dev/packages/device_calendar
BSD 3-Clause "New" or "Revised" License
258 stars 257 forks source link

The Android Gradle plugin supports only kotlin-android-extensions Gradle plugin version 1.6.20 and higher. #496

Open nobodyyu opened 11 months ago

nobodyyu commented 11 months ago

Run a flutter doctor so we can rule out env issues

[✓] Flutter (Channel stable, 3.10.6, on macOS 14.0 23A5301h darwin-arm64, locale zh-Hant-TW) [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 14.3.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2022.1) [✓] IntelliJ IDEA Ultimate Edition (version 2023.1) [✓] VS Code (version 1.80.2) [✓] Connected device (4 available) [✓] Network resources

jen-mary commented 10 months ago

I have the same error.. do you have any fixes for it?

rafaelvizcaino-1982 commented 10 months ago

Hello,

In my case, the error was:

The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher. The following dependencies do not satisfy the required version: project ':flutter_native_timezone' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50

It seems to show up when I added the device_calendar dependency in the pubspec.yaml

I read the section 'Timezone support with TZDateTime', maybe it is related to that point...

... the same question: do you have any fixes for it?

EDIT: by the way, the kotlin version used in the project is 1.8.0, and I added the dependency 'flutter_native_timezone' in the pubspec.yaml as well.

FeliksMarksen commented 10 months ago

I have the same error. Are there any workarounds?

maerlynflagg commented 10 months ago

same error. i found, this can be replaced with "flutter_timezone", because the "flutter_native_timezone" package hasn't been maintained for two years.

https://stackoverflow.com/questions/76647355/flutter-native-timezone-library-can-not-build-on-android

so can you fix this?

sunjiaming commented 9 months ago

I have the same error.. Hope to get the author's support

SuperKrallan commented 3 months ago

I replaced the flutter_native_timezone with flutter_timezone in the pubspec.yaml file and replace the import of the package, as well as any methods from the one to the other, and then I was up running again.