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'
相关推荐
忆江南13 小时前
iOS 深度解析
flutter·ios
明君8799713 小时前
Flutter 实现 AI 聊天页面 —— 记一次 Markdown 数学公式显示的踩坑之旅
前端·flutter
恋猫de小郭14 小时前
移动端开发稳了?AI 目前还无法取代客户端开发,小红书的论文告诉你数据
前端·flutter·ai编程
MakeZero17 小时前
Flutter那些事-交互式组件
flutter
shankss17 小时前
pull_to_refresh_simple
flutter
shankss17 小时前
Flutter 下拉刷新库新特性:智能预加载 (enableSmartPreload) 详解
flutter
SoaringHeart2 天前
Flutter调试组件:打印任意组件尺寸位置信息 NRenderBox
前端·flutter
九狼3 天前
Flutter URL Scheme 跨平台跳转
人工智能·flutter·github
_squirrel3 天前
记录一次 Flutter 升级遇到的问题
flutter
Haha_bj3 天前
Flutter——状态管理 Provider 详解
flutter·app