Skip to content

Kotlin Error while running in Android #126

@ardeshir-33033

Description

@ardeshir-33033

I want to use the package and I am trying to run in Android but I get this error

e: file:///Users/ardeshir/.pub-cache/hosted/pub.dev/flutter_screen_recording-2.0.16/android/src/main/kotlin/com/isvisoft/flutter_screen_recording/ForegroundService.kt:67:109 Overload resolution ambiguity between candidates:
@RequiresApi(...) @NonNull() fun setSmallIcon(@NonNull() p0: IconCompat): NotificationCompat.Builder
@NonNull() fun setSmallIcon(p0: Int): NotificationCompat.Builder
e: file:///Users/ardeshir/.pub-cache/hosted/pub.dev/flutter_screen_recording-2.0.16/android/src/main/kotlin/com/isvisoft/flutter_screen_recording/ForegroundService.kt:67:124 Unresolved reference 'drawable'.
e: file:///Users/ardeshir/.pub-cache/hosted/pub.dev/flutter_screen_recording-2.0.16/android/src/main/kotlin/com/isvisoft/flutter_screen_recording/ForegroundService.kt:68:22 Unresolved reference 'setContentIntent'.

I use
Flutter 3.24.5
Android SDK version 35.0.0

I am not able to update flutter_screen_recording because of js version issues with other libraries.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions