当前位置:   article > 正文

Flutter 使用环信即时通讯闪退解决办法

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


  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号