我只想在linux上正确安装flutter,很多时候我都会遇到这样的错误:
/home/beit/snap/flutter/common/flutter/bin/internal/shared.sh: line 24: cd: /home/beit/snap/flutter/common/flutter/packages/flutter_tools: No such file or directory
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)
我
我正在尝试制作一个带有颤振的Linux应用程序,但它似乎不起作用。
这是运行flutter run -d linux或flutter build linux时出现的错误
Launching lib/main.dart on Linux in debug mode...
/snap/flutter/current/usr/include/sched.h:122:16: error: unknown type name 'cpu_set_t'
/snap/flutter/current/usr/include/sched.h:126:10: error: unknown type
我在Ubuntu 20.04 LTE上
我的Android位置(在Android中显示)是/home/myuser/Android/Sdk。
错误如下:
✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Androi
我的flutter应用程序甚至没有webview_flutter插件,而且它显示了错误。Gradle构建失败。首先,它告诉我将minSDkVersion设置为19。我这样做了,但仍然错误。我有相同的应用程序,但不同的项目运行在完全相同的代码和插件之前。我不明白这是怎么回事。请帮帮忙。
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Running Gradle task 'assembleDebug'...
Note: C:\flutter\.pub-cache\hosted\pub.d
今天,我试着启动vscode。我在dmenu中键入code,然后按enter键。什么都没发生。我又做了几次,仍然一无所获。现在,我尝试在我的终端中打开它。code。我得到一个错误: /var/lib/snapd/snap/code/70/command-code.wrapper: line 2: /snap/code/70/electron-launch: No such file or directory 我尝试了sudo snap refresh,希望能有最好的结果。 error: cannot perform the following tasks:
- Mount snap "
我在网上找不到我的问题的答案。
我在试着安装颤振。因此,正如在中解释的那样(我使用的是Ubuntu,Linux),我安装了snap,然后是Android Studio和Visual Code。
这是flutter doctor的输出
$ flutter doctor
> Doctor summary (to see all details, run flutter doctor -v):
> [✓] Flutter (Channel stable, 1.20.2, on Linux, locale en_US.UTF-8)
>
> [✓] Android tool
当我在android上运行我的flutter应用程序时,出现了这个错误,我确实干净地执行了许多命令,但是它没有工作。
../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_search-0.6.3/lib/src/selectDialog.dart:193:23: Error: No named parameter with the name 'interactive'.
interactive: widget.scrollb
我使用的是颤振2.10.0版本的项目,它运行良好,但是升级到3.0.0版本后,我的项目没有生成,它给了我这个错误
[ ] > Task :app:compileFlutterBuildDebug FAILED
[ ] Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
[ ] Use '--warning-mode all' to show the individual deprecation war
我最近开始在运行我的应用程序时收到这个错误。它似乎不会影响所有东西,但在日志中它是非常嘈杂和恼人的。我没有做任何改变,也没有在我的应用程序中添加任何会导致这种情况的东西,我最近做的唯一一件事就是升级到最新版本的Flutter (我经常升级,所以距离上次更新只有几天的时间)。 ../../../../../flutter/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart:1111:7: Info: Struct 'ENUMLOGFONTEX' is empty. Support
由于这个错误,我的颤振应用程序没有编译:
即使存在“ErrorHandlingFile”的文件实例,也无法读取它。请验证此文件是否具有读取权限,然后重试。
我已经厌倦了切换频道和改变版本,但是还没有什么效果。
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v1.13.6, on Mac OS X 10.15.1 19B88, locale de-DE)
[✓] Android toolchain - develop for Android devices (
我试图克隆一个Flutter项目,它成功地在Windows上运行,但当我在Linux上运行时,我得到了这样的错误。
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':bitmap:externalNativeBuildDebug'.
> Build command failed.
Error while executing process /home/wahyu/Android/Sdk/cmake/3.6.4111459/bin/cmake wi
我跑不了这个颤音,请帮帮我。我是新来的。要了解问题所在,请从下面的链接克隆此项目,并尝试在android或web上运行该项目。Gthub链接:
调试控制台输出
Launching lib/main.dart on Chrome in debug mode...
: Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.
- 'WidgetsBinding' is from 'package:flutt
我试图在Ubuntu22.04LTS上运行一个颤振应用程序。一切都很顺利。但是,今天在运行这个应用程序时出现了这个问题。颤振SDK无法构建应用程序,引发以下错误。
/snap/flutter/130/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/../../../../lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so)
Failed to load
我正在使用下面的文章在Raspberry Pi 4 https://snapcraft.io/install/flutter/raspbian#install中安装Flutter 我得到了以下错误 pi@raspberrypi:~ $ sudo snap install flutter --classic
error: snap "flutter" is not available on stable for this architecture (armhf) but exists on other architectures (amd64, arm64). 我尝试添加arm
任何启用了linux的flutter应用程序的linux版本都会导致以下错误:
flutter run -d linux
Launching lib/main.dart on Linux in debug mode...
/snap/flutter/current/usr/bin/ld: warning: /usr/lib64/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib64/crt1.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
/snap/flutter/current/usr/b
在添加包并将其实现到控制器后,出现了错误。如果我添加final myController = Get.put(MyController());,我得到了这个错误,是的,只有一行代码。我使用4.6.1版本。
这是错误
../../.pub-cache/hosted/pub.dartlang.org/get-4.6.1/lib/get_navigation/src/root/get_material_app.dart:322:17: Error: No named parameter with the name 'useInheritedMediaQuery'.
在安装mongo_dart 0.4.3期间,我收到以下错误(pub get)
Because every version of flutter_test from sdk depends on crypto 2.1.4 and mongo_dart >=0.4.1-dev.2.2 depends on crypto ^2.1.5, flutter_test from sdk is incompatible with mongo_dart >=0.4.1-dev.2.2.
So, because fluttermongo depends on both mongo_dart ^0.