更新Flutter到1.20.2后(也尝试了1.20.1)应用程序无法在发布模式下构建android apk。
之后
flutter build apk
字符串
我出错了
Script '/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 896
型
之后呢
flutter build apk -v
型
构建错误
[ +1 ms] [ ] Failed to subset font; aborting.
[ +2 ms] [ +8 ms] Target aot_android_asset_bundle failed: FontSubset error: Font subsetting failed with exit code 255.
[ ] #0 IconTreeShaker.subsetFont (package:flutter_tools/src/build_system/targets/icon_tree_shaker.dart:213:7)
flutter build apk --no-tree-shake-icons