Unhandled|Unhandled exception: Could not import "package:dart_first/dart_first.dart"
【Unhandled|Unhandled exception: Could not import "package:dart_first/dart_first.dart"】创建dart项目时(用intelliJ IDEA创建的,Android Studio只能创建flutter工程,无法创建dart工程,打开和运行时没问题的),出现
Unhandled exception:
Could not import "package:dart_first/dart_first.dart" from "file:///Users/yinjn/Desktop/flutter/dart/dart_first/bin/main.dart": Could not resolve a package location for base at file:///Users/yinjn/Desktop/flutter/dart/dart_first/bin/main.dart
null
这是创建工程时,需要从google里下载东西,具体可以看Messages里的下载项,如果下载完了再运行就没问题了,如果不行可以尝试翻墙,或连手机热点吧。
推荐阅读
- com.android.dex.DexIndexOverflowException
- Java|Java 面试题
- Spark--java.util.NoSuchElementException:|Spark--java.util.NoSuchElementException: None.get at at
- RpcException:|RpcException: Invalid token! Failed to invoke method
- NoSuchElementException|NoSuchElementException selenium 定位frame(iframe)解决找不到xpath问题
- 捕获异常Exceptions
- PageHelper不安全的分页问题,导致ParserException: syntax error
- Dubbo使用Hessian2序列化时针对Byte类型出现java.lang.ClassCastException
- El|El Cóndor Pasa (If I Could)
- android java.lang.SecurityException: Permission Denial