【发布时间】:2020-09-24 23:30:07
【问题描述】:
我为我的项目制作了.apk 文件,它的大小是19.4MB,这正常吗?
我使用了命令:
flutter build apk --release
该命令会生成 apk 文件,但是会输出以下消息:
You are building a fat APK that includes binaries for android-arm, android-arm64, android-x64.
If you are deploying the app to the Play Store, it's recommended to use app bundles or split the APK to reduce the APK size.
To generate an app bundle, run:
flutter build appbundle --target-platform android-arm,android-arm64,android-x64
Learn more on: https://developer.android.com/guide/app-bundle
To split the APKs per ABI, run:
flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi
Learn more on: https://developer.android.com/studio/build/configure-apk-splits#configure-abi-split
【问题讨论】:
标签: android flutter build apk release