Flutter 使用环信即时通讯闪退解决办法
生活随笔
收集整理的這篇文章主要介紹了
Flutter 使用环信即时通讯闪退解决办法
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
Flutter 使用環(huán)信即時通訊閃退解決辦法
- 集成環(huán)信打包release版本遇到閃退情況解決辦法
- 配置混淆
- 創(chuàng)建 proguard-rules.pro 文件
- 添加混淆內(nèi)容
集成環(huán)信打包release版本遇到閃退情況解決辦法
這里是個人記錄,當然如果你也遇到這種小問題沒解決可以參考參考
配置混淆
修改 /android/app/build.gradle 文件:
創(chuàng)建 proguard-rules.pro 文件
添加混淆內(nèi)容
## 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總結
以上是生活随笔為你收集整理的Flutter 使用环信即时通讯闪退解决办法的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 当“气象+”遇到水文——技术篇
- 下一篇: OpenGL系列教程之十一:OpenGL