s0nerik / fast_contacts

A faster way of accessing device's contacts list in Flutter
MIT License
15 stars 16 forks source link

Build fails on Flutter 3.24 #24

Closed Jonny5-5 closed 2 months ago

Jonny5-5 commented 2 months ago

Build Error

e: C:\Users\<user>\AppData\Local\Pub\Cache\hosted\pub.dev\fast_contacts-3.1.3\android\src\main\kotlin\com\github\s0nerik\fast_contacts\FastContactsPlugin.kt: (142, 1): Class 'FastContactsPlugin' is not abstract and does not implement abstract member public abstract val lifecycle: Lifecycle defined in androidx.lifecycle.LifecycleOwner
e: C:\Users\<user>\AppData\Local\Pub\Cache\hosted\pub.dev\fast_contacts-3.1.3\android\src\main\kotlin\com\github\s0nerik\fast_contacts\FastContactsPlugin.kt: (292, 5): 'getLifecycle' overrides nothing
e: C:\Users\<user>\AppData\Local\Pub\Cache\hosted\pub.dev\fast_contacts-3.1.3\android\src\main\kotlin\com\github\s0nerik\fast_contacts\FastContactsPlugin.kt: (298, 5): 'getViewModelStore' overrides nothing
e: C:\Users\<user>\AppData\Local\Pub\Cache\hosted\pub.dev\fast_contacts-3.1.3\android\src\main\kotlin\com\github\s0nerik\fast_contacts\FastContactsPlugin.kt: (455, 44): Overload resolution ambiguity:
public open fun query(p0: ContentResolver, p1: Uri, p2: Array<(out) String!>?, p3: String?, p4: Array<(out) String!>?, p5: String?, p6: android.os.CancellationSignal?): Cursor? defined in androidx.core.content.ContentResolverCompat
public open fun query(p0: ContentResolver, p1: Uri, p2: Array<(out) String!>?, p3: String?, p4: Array<(out) String!>?, p5: String?, p6: androidx.core.os.CancellationSignal?): Cursor? defined in androidx.core.content.ContentResolverCompat

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':fast_contacts:compileReleaseKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > 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 9s

Flutter/Dart versions

Flutter 3.24.0 • channel stable • https://github.com/flutter/flutter.git Framework • revision 80c2e84975 (7 days ago) • 2024-07-30 23:06:49 +0700 Engine • revision b8800d88be Tools • Dart 3.5.0 • DevTools 2.37.2

s0nerik commented 2 months ago

Fixed in v3.1.5