mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-02 19:26:56 -05:00
Build Failure: receiver type mismatch when compiling Rustdesk for Android #2238
Labels
No labels
bug
documentation
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
question
unreproducible
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rustdesk-rustdesk#2238
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aakashkhochare on GitHub (Oct 25, 2023).
Bug Description
When I try to build rustdesk 1.2.1 for android, the build fails at flutter build apk with the following error:
e: /home/akhoc/rustdesk_source/rustdesk-1.2.1/flutter/android/app/src/main/kotlin/com/carriez/flutter_hbb/MainService.kt: (343, 62): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: public inline fun <T : Closeable?, R> TypeVariable(T).use(block: (TypeVariable(T)) -> TypeVariable(R)): TypeVariable(R) defined in kotlin.ioThe error seems to be at
imageReader.acquireLatestImage().useHow to Reproduce
Download rustdesk 1.2.1 source code from the releases.
Follow the build guide for android link
Expected Behavior
The build to finish successfully and an android apk file for installation
Operating system(s) on local side and remote side
Android -> Linux
RustDesk Version(s) on local side and remote side
1.2.1 -> 1.2.1
Screenshots
Additional Context
While I am reporting this error for 1.2.1, I had the same error with 1.2.2
@rustdesk commented on GitHub (Oct 25, 2023):
#763