当前位置:   article > 正文

flutter build hap打包编译时报错:hvigor ERROR: Failed :entry:default@CompileArkTS...

failed :entry:default@compilearkts...

  1. xxx:~/demo/flutter_ohos$ flutter build hap --target-platform ohos-arm64 --local-engine-src-path=/home/xxx/work/engine/src --local-engine=ohos_release_arm64
  2. Downloading Linux x64 Dart SDK from Flutter engine 1a65d409c7a1438a34d21b60bf30a6fd5db59314...
  3. % Total % Received % Xferd Average Speed Time Time Time Current
  4. Dload Upload Total Spent Left Speed
  5. 100 238M 100 238M 0 0 23.4M 0 0:00:10 0:00:10 --:--:-- 24.6M
  6. Building flutter tool...
  7. Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
  8. Downloading Material fonts... 351ms
  9. Downloading Gradle Wrapper... 29ms
  10. Downloading package sky_engine... 128ms
  11. Downloading flutter_patched_sdk tools... 232ms
  12. Downloading flutter_patched_sdk_product tools... 261ms
  13. Downloading linux-x64 tools... 1,257ms
  14. Downloading linux-x64/font-subset tools... 79ms
  15. start hap build...
  16. ohosPluginsManager: no need to install ohos plugins
  17. check platform environment
  18. current platform environment PUB_HOSTED_URL = https://pub.flutter-io.cn
  19. current platform environment FLUTTER_STORAGE_BASE_URL = https://storage.flutter-io.cn
  20. current platform environment OHPM_HOME = /home/xxx/tools/oh-command-line-tools/ohpm
  21. Compiling ohos_aot_bundle_release_ohos-arm64 for the Ohos... 908ms
  22. copy flutter assets to project start
  23. copy directory from /home/xxx/demo/flutter_ohos/build/ohos/flutter_assets to
  24. /home/xxx/demo/flutter_ohos/ohos/entry/src/main/resources/rawfile/flutter_assets
  25. copy flutter assets to project end
  26. copy flutter runtime to project start
  27. originHarFile: LocalFile:
  28. '/home/xxx/flutter_flutter/packages/flutter_tools/templates/app_shared/ohos.tmpl/har/har_product.tmpl/flutter_embedding.har.release.10'
  29. flutterEngineSoPath: /home/xxx/work/engine/src/out/ohos_release_arm64/libflutter.so
  30. copy flutter runtime to project end
  31. install completed in 0s 2ms
  32. ohpm install success.
  33. install completed in 0s 81ms
  34. ohpm install success.
  35. > hvigor Finished :entry:clean... after 16 ms
  36. > hvigor UP-TO-DATE :entry:default@PreBuild...
  37. > hvigor Finished :entry:default@GenerateMetadata... after 9 ms
  38. > hvigor Finished :entry:default@CreateBuildProfile... after 2 ms
  39. > hvigor Finished ::clean... after 1 ms
  40. > hvigor Finished :entry:default@BuildNativeWithCmake... after 1 ms
  41. > hvigor Finished :entry:default@GenerateLoaderJson... after 4 ms
  42. > hvigor Finished :entry:default@MergeProfile... after 3 ms
  43. > hvigor Finished :entry:default@BuildNativeWithNinja... after 1 ms
  44. > hvigor Finished :entry:default@MakePackInfo... after 7 ms
  45. > hvigor Finished :entry:default@ProcessProfile... after 67 ms
  46. > hvigor Finished :entry:default@ProcessLibs... after 66 ms
  47. > hvigor Finished :entry:default@ProcessResource... after 7 ms
  48. > hvigor Finished :entry:default@DoNativeStrip... after 50 ms
  49. > hvigor Finished :entry:default@CompileResource... after 51 ms
  50. > hvigor Finished :entry:default@CacheNativeLibs... after 136 ms
  51. > hvigor Finished :entry:default@BuildJS... after 2 ms
  52. > hvigor ERROR: Failed :entry:default@CompileArkTS...
  53. > hvigor ERROR: ArkTS Compiler Error
  54. ERROR: ArkTS:ERROR File:
  55. /home/xxx/demo/flutter_ohos/ohos/oh_modules/.ohpm/@ohos+flutter_ohos@file+har+flutter_embedding.har/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterEngineConnectionRegistry.ets:85:29
  56. Cannot find name 'ESObject'.

有人遇到类似问题吗?不知道怎么解决

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/550252
推荐阅读
相关标签
  

闽ICP备14008679号