-
-
Notifications
You must be signed in to change notification settings - Fork 871
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
[Question]: Getting this error with The binary version of its metadata is 1.9.0, expected version is 1.7.1. #2942
Comments
Please check plugin's requirements first and update your project accordingly: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/android_alarm_manager_plus#requirements You need to update Android Gradle Plugin version in your project. |
I did followed the requirement and still getting the message.
java --version
android/gradle/wrapper/gradle-wrapper.properties
android/build.gradle
android/app/build.gradle
can you tell me what's missing? |
Which version of the Android Gradle Plugin you use instead of this commented line? It needs to be at least 8.3.0. |
I have tried as suggested and still getting the same error:
|
btw I am using macos 14.4.1 |
What is your question?
I have added android_alarm_manager_plus: ^4.0.3 to pubspec.yaml
and when I run flutter build apk, I am getting this error:
'''
/.pub-cache/hosted/pub.dev/android_alarm_manager_plus-4.0.3/android/src/main/kotlin/dev/fluttercommunity/plus/androidalarmmanager/AlarmBroadcastReceiver.kt: (27, 18): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
The class is loaded from /Users/peterkim/.gradle/caches/transforms-4/44f32ef92a48a9a2ea0a5cd6f6ead497/transformed/jetified-kotlin-stdlib-1.9.23.jar!/kotlin/Unit.class
'''
here is my build.gradle:
'''
buildscript {
ext.kotlin_version = '1.9.24'
repositories {
google()
jcenter()
}
}
'''
can someone suggest how to fix this?
Checklist before submitting a question
flutter pub upgrade
flutter clean
The text was updated successfully, but these errors were encountered: