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'
相关推荐
SoaringHeart13 小时前
Flutter小技巧:IM音浪效果实现
前端·flutter
Bryce李小白1 天前
Flutter中实现页面跳转功能
flutter
RaidenLiu1 天前
Flutter 多环境配置:flavor
前端·flutter
忆江南1 天前
Widget 、 Element 和 RenderObject 关系
flutter
程序员老刘1 天前
“工信部要求9月30日前APP必须100%适配鸿蒙“ 是真的吗?
flutter·harmonyos
亿刀1 天前
WireGuard通讯原理
android·flutter
勤劳打代码2 天前
曲径通幽 —— Android 息屏 TCP 连接管理
android·tcp/ip·flutter
耳東陈2 天前
Flutter ScreenUtil Generator - 自动添加ScreenUtil后缀
flutter
恋猫de小郭2 天前
Flutter 里的 Layer 解析,带你了解不一样角度下的 Flutter 渲染逻辑
android·前端·flutter
愿天深海2 天前
Flutter 生命周期介绍
flutter