我们可以在flutter中构建apk时单独排除一个特定的文件吗

问题描述

我的项目中有 2 种产品风格,我不希望在构建 .apk 或应用程序包时添加某些文件,并且以下解决方案不起作用。

android {
 packagingOptions {
            exclude 'lib/widgets/hotel.dart'
            exclude 'lib/widgets/hotel_list_view.dart'
            exclude 'lib/widgets/hotel_list_data.dart'
            exclude 'lib/widgets/smooth_star_rating.dart'
        }
      }

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)