gpt4 book ai didi

dart - 在 flutter release 模式下,一个快照中的 native 代码如何在 mulity arch cpu 中运行

转载 作者:IT王子 更新时间:2023-10-29 06:55:15 24 4
gpt4 key购买 nike

我已经使用 dart/flutter 一段时间了,我真的很喜欢它。

我读到在构建移动应用程序时,dart 使用 arm 代码构建 native 应用程序。但是一个快照中的 native 代码如何在多个 arch cpu(如 x86 armeabi-v7、arch64)中运行?

最佳答案

(大约一年前)似乎仍然准确的评论 https://groups.google.com/forum/#!topic/flutter-dev/SD-gkfJQfzE

Currently we provide pre-built --release, --profile and --debug binaries for Android 32-bit ARM and --debug binaries for Android x64 (emulators). A description of --release, etc. modes means is here: https://github.com/flutter/flutter/wiki/Flutter%27s-modes

We have a bug on file about providing --release/--profile binaries for Android x86: https://github.com/flutter/flutter/issues/9253

Were there other architectures you were looking for?

It's possible to build flutter/engine yourself in various architecture / mode flavors beyond the ones we provide prebuilt for you: https://github.com/flutter/engine/blob/master/CONTRIBUTING.md

问题 9253 仍未解决,因此发布版本目前似乎仅支持 32 位 ARM

这个FAQ解释好像是支持ARMv7和ARM64 https://flutter.io/faq/#what-devices-and-os-versions-does-flutter-run-on

Note Flutter currently does not support building for x86 Android (issue #9253) directly, however apps built for ARMv7 or ARM64 run fine (via ARM emulation on many x86 Android devices.

关于dart - 在 flutter release 模式下,一个快照中的 native 代码如何在 mulity arch cpu 中运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50481677/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com