Skip to content
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

Kotlin Error while running in Android #126

Open
ardeshir-33033 opened this issue Jan 21, 2025 · 2 comments
Open

Kotlin Error while running in Android #126

ardeshir-33033 opened this issue Jan 21, 2025 · 2 comments

Comments

@ardeshir-33033
Copy link

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.

@liujingyangself
Copy link

have u solve this ?

@ardeshir-33033
Copy link
Author

@liujingyangself well since i had a lot of time for this i didn't try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants