mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-02 19:26:56 -05:00
The flutter project runs incorrectly #838
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#838
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 @szxv587 on GitHub (Oct 13, 2022).
I encounter the following problems when trying to run the flutter project. I would like to know how to solve them. Thank you!
lib/models/platform_model.dart:1:8: Error: Error when reading 'lib/generated_bridge.dart': 系统找不到指定的文件�?
import 'package:flutter_hbb/generated_bridge.dart';
^
lib/models/model.dart:11:8: Error: Error when reading 'lib/generated_bridge.dart': 系统找不到指定的文件�?
import 'package:flutter_hbb/generated_bridge.dart';
^
lib/models/native_model.dart:15:8: Error: Error when reading 'lib/generated_bridge.dart': 系统找不到指定的文件�?
import '../generated_bridge.dart';
^
lib/models/platform_model.dart:7:1: Error: Type 'RustdeskImpl' not found.
RustdeskImpl get bind => platformFFI.ffiBind;
^^^^^^^^^^^^
lib/models/native_model.dart:34:8: Error: Type 'RustdeskImpl' not found.
late RustdeskImpl _ffiBind;
^^^^^^^^^^^^
lib/models/native_model.dart:43:3: Error: Type 'RustdeskImpl' not found.
RustdeskImpl get ffiBind => _ffiBind;
^^^^^^^^^^^^
lib/models/native_model.dart:191:26: Error: Type 'RustdeskImpl' not found.
void _startListenEvent(RustdeskImpl rustdeskImpl) {
^^^^^^^^^^^^
lib/mobile/pages/remote_page.dart:674:56: Error: The argument type 'void Function(String?)' can't be assigned to the parameter type 'void Function(dynamic)'.
getRadio('Legacy mode', 'legacy', current, setMode,
^
lib/mobile/pages/remote_page.dart:676:50: Error: The argument type 'void Function(String?)' can't be assigned to the parameter type 'void Function(dynamic)'.
getRadio('Map mode', 'map', current, setMode,
^
lib/models/model.dart:1088:24: Error: 'Event' isn't a type.
if (message is Event) {
^^^^^
lib/models/model.dart:1095:31: Error: 'Rgba' isn't a type.
} else if (message is Rgba) {
^^^^
lib/models/native_model.dart:34:8: Error: 'RustdeskImpl' isn't a type.
late RustdeskImpl _ffiBind;
^^^^^^^^^^^^
lib/models/native_model.dart:115:18: Error: The method 'RustdeskImpl' isn't defined for the class 'PlatformFFI'.
Try correcting the name to the name of an existing method, or defining a method named 'RustdeskImpl'.
_ffiBind = RustdeskImpl(dylib);
^^^^^^^^^^^^
lib/models/native_model.dart:191:26: Error: 'RustdeskImpl' isn't a type.
void _startListenEvent(RustdeskImpl rustdeskImpl) {
^^^^^^^^^^^^
lib/models/user_model.dart:93:23: Error: The argument type 'List' can't be assigned to the parameter type 'Iterable<Future>'.
await Future.wait([
^
FAILURE: Build failed with an exception.
Where:
Script 'D:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1156
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
BUILD FAILED in 17s
Exception: Gradle task assembleDebug failed with exit code 1
@rustdesk commented on GitHub (Oct 13, 2022):
#763