Sin*_*gun 9 android build app-bundle apk flutter
我已经根据文档构建了本地引擎https://github.com/flutter/flutter/wiki/Compiling-the-engine
在我的out目录下,有4个目录,分别是android_debug_unopt、android_debug_unopt_arm64、host_debug_unopt、host_debug_unopt_arm64
我可以使用单一架构构建 appbundle 或 apk,例如:
flutter build appbundle --debug --local-engine-src-path=/Volumes/Data/engine/src --local-engine=android_debug_unopt --target-platform android-arm
Run Code Online (Sandbox Code Playgroud)
将会成功执行。
但是,我想构建具有多种架构的appbundle或apk,包括arm和arm64,但我使用以下命令构建失败:
flutter build appbundle --debug --local-engine-src-path=/Volumes/Data/engine/src --local-engine=android_debug_unopt_arm,android_debug_unopt_arm64 --target-platform android-arm,android-arm64
Run Code Online (Sandbox Code Playgroud)
因为我们不能给 --local-engine 参数提供两条路径。
如何使用本地引擎和多重架构构建 appbundle 或 apk?
| 归档时间: |
|
| 查看次数: |
499 次 |
| 最近记录: |