![](https://img-blog.csdnimg.cn/2019092715111047.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Flutter从入门到跑路
看啥时候能跑路
_柒安
这个作者很懒,什么都没留下…
展开
-
Error: No pubspec.yaml file found. This command should be run from the root of your Flutter project.
尝试Flutter官网终端命令行生成和运行flutter项目,最后一步flutter run怎么都不对,报错如下:Error: No pubspec.yaml file found.This command should be run from the root of your Flutter project.Do not run this command from the root of your git clone of Flutter.翻译:错误:找不到pubspec.yaml文件。原创 2020-06-30 18:08:30 · 6007 阅读 · 0 评论 -
Flutter 报错Could not determine the dependencies of task :app:compileDebugJavaWithJavac
运行一个GitHub上的flutter项目报错Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'。网上查了一下一种是说删除android文件夹下的.gradle文件夹,然后再项目根目录下执行flutter clean命令,试了一下对我来说没有用处。尝试另外一种,因为伟大的墙造成的无法访问Google,导致编译不成功,修改flutter安装目录下的\packages\flutter_tools\gra原创 2020-06-10 20:49:29 · 17366 阅读 · 0 评论 -
Flutter项目运行时报错Your app is not using AndroidX
flutter 项目运行报错Your app isn’t using AndroidX.这是因为在项目中没有使用AndroidX,在gradle.properties文件下添加这两行代码android.enableJetifier=trueandroid.useAndroidX=true原创 2020-06-10 15:55:08 · 365 阅读 · 0 评论 -
Flutter 时间控件汉化Locale引用出错解决
在练习Fluuter时间控件使用汉化时最后一步出了问题,Locale一直报错,提示类型不匹配,因为是新手,查了半天才反应过来是和引入的date_format库冲突了。需要Window.dart下的Locale,但是因为当前页依赖的date_format库,所以自动引用的是date_format下的Lacale类,导致类型不匹配报错。**解决办法:**重命名date_format库即可,引用时方法前加入重命名的库名。...原创 2020-06-08 01:05:20 · 1575 阅读 · 0 评论