
异常处理
高玉阳
这个作者很懒,什么都没留下…
展开
-
android模拟器MAC无法联网(安卓开发)
1.终端打开 安卓SDK下的emulator[hb@gaoyuyang18478 ~ % cd /Users/gaoyuyang18478/CONFIG_HOME/ASDK/emulator 这里的/Users/gaoyuyang18478/CONFIG_HOME/ASDK是我的SDK安装目录,换成自己的2.执行以下代码hb@gaoyuyang18478 emulator % emulator -avd flutter_emulator -dns-server 8.8.8.8,114.114.11原创 2021-06-29 16:53:48 · 738 阅读 · 2 评论 -
Warning: Interpreting this as package URI
报错在VSCode中运行flutter程序时,出现以下错误:lib/main.dart: Warning: Interpreting this as package URI, 'package:firstapp/main.dart'.../../CONFIG_HOME/FSDK/packages/flutter/lib/src/material/animated_icons.dart:9:8: Error: Not found: 'dart:ui'import 'dart:ui' as ui sho原创 2021-06-24 19:46:09 · 2244 阅读 · 2 评论 -
异常:dart: command not found
异常:dart: command not found在安装好Flutter的情况下,运行dart文件时运行失败,在VSCode中报出以上错误。检查 DART 插件和 Code Runner 插件已安装检查 被运行文件是否是.dart结尾,并且在文件夹目录下原因:没有配置 DART 的环境变量解决:1.打开 mac 终端,键入以下命令open ~/.bash_profile2.在该文件中写入环境变量信息这里的~/CONFIG_HOME/FSDK/bin/cache/dart-sdk路径是自原创 2021-06-23 18:52:51 · 1060 阅读 · 2 评论