Flutter开发HarmonyOS鸿蒙Next应用的时候Hvigorw缺失如何解决
Flutter开发HarmonyOS鸿蒙Next应用的时候Hvigorw缺失如何解决
【任务描述】
[✓] Flutter (Channel dev, 3.7.12-ohos, on macOS 14.1 23B2073 darwin-arm64,
locale zh-Hans-CN)
• Flutter version 3.7.12-ohos on channel dev at
/Users/xxxx/DevecostudioProjects/flutter_flutter
• Upstream repository https://gitee.com/openharmony-sig/flutter_flutter.git
• FLUTTER_GIT_URL = https://gitee.com/openharmony-sig/flutter_flutter.git
• Framework revision 59ee9c25ad (25 hours ago), 2024-06-26 09:15:23 +0000
• Engine revision 1a65d409c7
• Dart version 2.19.6
• DevTools version 2.20.1
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn
[✗] HarmonyOS toolchain - develop for HarmonyOS devices • OpenHarmony Sdk at /Users/xxxx/ohnextflutter/ohos/sdk/M1SDK, available api versions has [11:HarmonyOS-NEXT-DP2, 10:HarmonyOS-NEXT-DP0] • Ohpm version 1.6.0 • Node version v16.20.2 ✗ Hvigorw is missing, please configure “hvigorw” to the environment variable PATH.
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at /Users/xxxx/Library/Android/sdk • Platform android-34, build-tools 34.0.0 • ANDROID_HOME = /Users/xxxx/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314) • All Android licenses accepted. **
请问下 这个环境变量该怎么配置
请按dev分支的readme配置环境变量。 https://gitee.com/openharmony-sig/flutter_flutter/tree/dev/#环境依赖
在Flutter开发HarmonyOS鸿蒙Next应用时遇到Hvigorw缺失的问题,可以尝试以下方法进行解决:
- 确认环境配置:确保鸿蒙开发工具链、Flutter SDK、Dart SDK等已正确安装并配置到最新版本。同时,检查DevEco Studio是否配置正确,包括环境变量
DEVECO_SDK_HOME
是否指向正确的SDK位置。 - 检查项目依赖:在项目的
pubspec.yaml
文件中,确认依赖项是否兼容当前鸿蒙版本,并尝试更新或降级某些依赖。 - 清理和重建项目:在DevEco Studio中,尝试清理并重建项目,以解决可能因旧构建缓存导致的问题。
- 查看日志和错误信息:详细查看构建和运行时的日志信息,查找Hvigorw缺失的具体原因,并根据日志提示进行相应的修复。
如果问题依旧没法解决请联系官网客服,官网地址是:https://www.itying.com/category-93-b0.html 。