我在创建 APK 时在控制台中遇到错误。
Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing it from 1645184 to 3336 bytes (99.8% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.
Running Gradle task 'assembleRelease'... 839.5s
√ Built build\app\outputs\flutter-apk\app-release.apk (71.3MB)
使用最新的 Flutter 版本 - 3.24.3
请提出解决此问题的方法。
尝试将此行放入您的 pubspec.yaml 文件中
flutter:
uses-material-design: true # Remove or comment out this line to exclude Material Icons
请像您一样审查这个问题问题