今天在flutter打包的时候,打包的release包一直报错,搞了半天原来是混淆文件没有配置,所以加个混淆配置就行,
#Flutter Wrapper
-keep class io.flutter.app.** { *; }
-keep class io.flutter.plugin.** { *; }
-keep class io.flutter.util.** { *; }
-keep class io.flutter.view.** { *; }
-keep class io.flutter.** { *; }
-keep class io.flutter.plugins.** { *; }
如果你的app不需要混淆配置,那么就应该不会报这个错误
网友评论