Flutter异常Couldn‘t find dynamic library in default locations

Flutter项目在Windows系统使用ffigen生成代码时报下面的错误:

SEVERE\] : Couldn't find dynamic library in default locations. \[SEVERE\] : Please supply one or more path/to/llvm in ffigen's config under the key 'llvm-path'. Unhandled exception: Exception: Couldn't find dynamic library in default locations. #0 findDylibAtDefaultLocations (package:ffigen/src/config_provider/spec_utils.dart:371:3) #1 Config._getRootConfigSpec.\ (package:ffigen/src/config_provider/config.dart:231:35) #2 HeterogeneousMapConfigSpec._extractNode (package:ffigen/src/config_provider/config_spec.dart:320:16) #3 ConfigSpec.extract (package:ffigen/src/config_provider/config_spec.dart:86:12) #4 new Config.fromYaml (package:ffigen/src/config_provider/config.dart:192:22) #5 new Config.fromFile (package:ffigen/src/config_provider/config.dart:201:19) #6 getConfigFromCustomYaml (package:ffigen/src/executables/ffigen.dart:126:17) #7 getConfig (package:ffigen/src/executables/ffigen.dart:78:14) #8 main (package:ffigen/src/executables/ffigen.dart:48:14)

复制代码
llvm-path:
  - 'D:\LLVM'
相关推荐
张风捷特烈2 小时前
每日一题 Flutter#4 | 说说组件 build 函数的作用
android·flutter·面试
小镇梦想家19 小时前
鸿蒙NEXT-Flutter(2)
flutter
至善迎风21 小时前
一键更新依赖全指南:Flutter、Node.js、Kotlin、Java、Go、Python 等主流语言全覆盖
java·flutter·node.js
椒盐煎蛋1 天前
新建的Flutter插件工程,无法索引andorid工程代码;无法索引io.flutter包下代码。
flutter
张风捷特烈1 天前
每日一题 Flutter#3 | 说说 Widget 的派生体系
android·flutter·面试
爱意随风起风止意难平1 天前
003 flutter初始文件讲解(2)
学习·flutter
每次的天空2 天前
Android第十一次面试flutter篇
android·flutter·面试
getapi2 天前
为什么 uni-app 开发的 App 没有明显出现屏幕适配问题Flutter 开发的 App 出现了屏幕适配问题
flutter·uni-app
getapi2 天前
使用 Flutter 开发 App 时,想要根据 Figma 设计稿开发出响应式 UI 界面
flutter·ui·figma
只可远观2 天前
Flutter GridView网格组件
flutter