Flutter 使用环信即时通讯闪退解决办法
集成环信打包release版本遇到闪退情况解决办法
这里是个人记录,当然如果你也遇到这种小问题没解决可以参考参考
配置混淆
修改 /android/app/build.gradle 文件:
创建 proguard-rules.pro 文件

添加混淆内容

## 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.** { *; }
-keep class com.hyphenate.** {*;}
-dontwarn com.hyphenate.**
-keep class internal.org.apache.http.entity.** {*;}
-keep class com.superrtc.** {*;}
-dontwarn com.superrtc.**
# -keep class com.google.firebase.** { *; } // uncomment this if you are using firebase in the project
-dontwarn io.flutter.embedding.**
-ignorewarnings
版权声明:本文为weixin_42795002原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。