安卓打包debug正常,release包无法正常连接和发送消息

莫语 1月前 149

有什么排查方法吗

最新回复 (22)
  • 莫语 1月前
    引用 2
    release开启混淆了
  • 莫语 1月前
    引用 3
    导入uikit的方式接入的
  • x86 1月前
    引用 4
    莫语 release开启混淆了
    参考 demo 里面的混淆配置,client 下面的代码是不能混淆的

    另外,附上相关日志会更好分析
  • 莫语 1月前
    引用 5
    在uikit中我们又增加了部分代码,加了一个网络请求用于获取APP用户的信息,目前这个网络请求正常,但是IM服务一直无法连接
  • 莫语 1月前
    引用 6
    请问client中的代码不被混淆的配置在哪里呢?我是吧项目中的这部分混淆配置全部复制过去了
  • 莫语 1月前
    引用 7
    # Add project specific ProGuard rules here.
    # By default, the flags in this file are appended to flags specified
    # in E:\AndroidSoft\sdk/tools/proguard/proguard-android.txt
    # You can edit the include path and order by changing the proguardFiles
    # directive in build.gradle.
    #
    # For more details, see
    #   http://developer.android.com/guide/developing/tools/proguard.html

    # Add any project specific keep options here:

    # If your project uses WebView with JS, uncomment the following
    # and specify the fully qualified class name to the JavaScript interface
    # class:
    #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
    #   public *;
    #}

    # Uncomment this to preserve the line number information for
    # debugging stack traces.
    #-keepattributes SourceFile,LineNumberTable

    # If you keep the line number information, uncomment this to
    # hide the original source file name.
    #-renamesourcefileattribute SourceFile

    -dontwarn com.tencent.bugly.**
    -keep public class com.tencent.bugly.**{*;}

    -dontshrink
    -keep class org.webrtc.**  { *; }
    -keep class com.serenegiant.**  { *; }
    -keepclasseswithmembernames class * { native <methods>; }

    -keep class okhttp3.** {*;}
    -keepclassmembers class okhttp3.** {
      *;
    }

    -keep class com.tencent.**{*;}
    -keepclassmembers class com.tenncent.mars.** {
      *;
    }

    #-keep class !cn.wildfire.chat.moment.**,!cn.wildfirechat.moment.**, **{ *; }
    -keep class cn.wildfirechat.moment.MomentClient {
        public void init(***);
    }

    -keep class cn.wildfire.chat.app.login.model.** {*;}
    -keepclassmembers class cn.wildfire.chat.app.login.model.** {
      *;
    }

    -keep class cn.wildfire.chat.kit.net.base.** {*;}
    -keepclassmembers class cn.wildfire.chat.kit.net.base.** {
      *;
    }

    -keep class  cn.wildfire.chat.kit.voip.conference.model.** {*;}
    -keepclassmembers class  cn.wildfire.chat.kit.voip.conference.model.** {
      *;
    }

    -keep class cn.wildfire.chat.kit.group.GroupAnnouncement {*;}
    -keepclassmembers class cn.wildfire.chat.kit.group.GroupAnnouncement {
      *;
    }

    -keep class cn.wildfirechat.model.** {*;}
    -keepclassmembers class cn.wildfirechat.model.** {
      *;
    }

    -keep class cn.wildfire.chat.kit.organization.model.** {*;}
    -keepclassmembers class cn.wildfire.chat.kit.organization.model.** {
      *;
    }

    -keepclassmembers class cn.wildfirechat.** {
        <init>(...);
    }

    -keepclassmembers class cn.wildfire.** {
        <init>(...);
    }

    -keepclassmembers class cn.wildfirechat.message.MessageContent {
        encode();
    }

    -keep class net.sourceforge.pinyin4j.** { *;}


    #huawei push
    -ignorewarnings
    -keepattributes *Annotation*
    -keepattributes Exceptions
    -keepattributes InnerClasses
    -keepattributes Signature
    -keepattributes SourceFile,LineNumberTable
    -keep class com.hianalytics.android.**{*;}
    -keep class com.huawei.updatesdk.**{*;}
    -keep class com.huawei.hms.**{*;}
  • 莫语 1月前
    引用 8
    我看到了client中没有开启混淆,我APP中开启混淆应该不影响
     buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
  • 莫语 1月前
    引用 9
    app日志


    2024-03-07 19:07:53.567 29351-29620 cn.wildfir...hatManager com.youquan.mobile                   D  connectionStatusChange 0
    2024-03-07 19:07:53.766 29351-29620 cn.wildfir...hatManager com.youquan.mobile                   D  connectionStatusChange -1
    2024-03-07 19:07:53.898 29351-29620 cn.wildfir...hatManager com.youquan.mobile                   D  connectionStatusChange -6
    2024-03-07 19:07:53.898 29351-29620 cn.wildfir...hatManager com.youquan.mobile                   D  连接失败,请参考:https://docs.wildfirechat.cn/faq/general.html
    2024-03-07 19:07:53.930 29351-29620 cn.wildfir...hatManager com.youquan.mobile                   D  connectionStatusChange 0
    2024-03-07 19:07:54.202 29351-29620 cn.wildfir...hatManager com.youquan.mobile                   D  connectionStatusChange -1
    2024-03-07 19:08:59.949 29351-29620 cn.wildfir...hatManager com.youquan.mobile                   D  connectionStatusChange 0
    2024-03-07 19:09:00.164 29351-29620 cn.wildfir...hatManager com.youquan.mobile                   D  connectionStatusChange -1
    2024-03-07 19:09:00.306 29351-29570 cn.wildfir...hatManager com.youquan.mobile                   D  connectionStatusChange -6
    2024-03-07 19:09:00.306 29351-29570 cn.wildfir...hatManager com.youquan.mobile                   D  连接失败,请参考:https://docs.wildfirechat.cn/faq/general.html
    2024-03-07 19:09:00.336 29351-29570 cn.wildfir...hatManager com.youquan.mobile                   D  connectionStatusChange 0
    2024-03-07 19:09:00.497 29351-29620 cn.wildfir...hatManager com.youquan.mobile                   D  connectionStatusChange -1
    ---------------------------- PROCESS STARTED (32220) for package com.youquan.mobile ----------------------------
    2024-03-07 19:10:14.827 32220-32220 cn.wildfir...hatManager com.youquan.mobile                   D  init 192.168.0.194
    2024-03-07 19:10:14.827 32220-32220 cn.wildfir...hatManager com.youquan.mobile                   D  *************** SDK检查 *****************
    2024-03-07 19:10:14.829 32220-32220 cn.wildfir...hatManager com.youquan.mobile                   E  检查音视频 SDK 失败: cn.wildfirechat.avenginekit.b.isSupportMultiCall []
    2024-03-07 19:10:14.830 32220-32220 cn.wildfir...hatManager com.youquan.mobile                   E  检查朋友圈 SDK 失败: cn.wildfirechat.moment.MomentClient
    2024-03-07 19:10:14.831 32220-32220 cn.wildfir...hatManager com.youquan.mobile                   E  检查对讲 SDK 失败: i3.a.checkAddress [class java.lang.String]
    2024-03-07 19:10:14.831 32220-32220 cn.wildfir...hatManager com.youquan.mobile                   D  *************** SDK检查 *****************
    2024-03-07 19:10:14.845 32220-32220 cn.wildfir...hatManager com.youquan.mobile                   D  clientId 2e031f33-4df8-4928-a9d2-a291f6b4f8981704177382661
    ---------------------------- PROCESS STARTED (32333) for package com.youquan.mobile ----------------------------
    2024-03-07 19:10:15.049 32220-32220 cn.wildfir...hatManager com.youquan.mobile                   D  startLog
    ---------------------------- PROCESS STARTED (32427) for package com.youquan.mobile ----------------------------
    2024-03-07 19:10:17.400 32220-32627 cn.wildfir...hatManager com.youquan.mobile                   D  setDeviceToken QRZ3Szp5Y2PlHFw26ThowM7/f2RQooXEPVZ60tFBu8jm9wbIYZR3IIeQYDr8Ps6K 1
    2024-03-07 19:10:17.668 32220-32220 cn.wildfir...hatManager com.youquan.mobile                   D  marsClientService connected
    2024-03-07 19:10:17.680 32220-32329 cn.wildfir...hatManager com.youquan.mobile                   D  startLog
  • x86 1月前
    引用 10
    如日志所说,请参考:

    https://docs.wildfirechat.cn/faq/general.html 问题 12
  • 莫语 1月前
    引用 11
    这个还不是最终的问题,这个是因为我IM服务没有启动,现在我这边的情况是debug包正常,release就连不上,而且release模式直接编译运行也是正常的,也就是说只要打release包就不行
  • 莫语 1月前
    引用 12

    已找到复现步骤,应该是手机问题,只要用我这个手机登录,无论哪个账号都无法连接IM IM系统是否有黑名单或者其他限制登录类的机制,刚才我试了一下,其他手机和用户都是正常的,

    下面是我手机的参数小米的Helper os,不知道是否是安卓14有什么机制,我身边没有其他

  • 莫语 1月前
    引用 13
    我身边目前没有其他安卓14的设备,不知道是否是安卓14的系统机制问题
  • x86 1月前
    引用 14
    莫语 我身边目前没有其他安卓14的设备,不知道是否是安卓14的系统机制问题
    我们测试过 Android 14 的,没发现问题。

    请你用 adb logcat > log.log 抓取完整日志,并附上,我们分析一下
  • 莫语 1月前
    引用 15
    2024-03-08 17:23:06.124 11765-11765 cn.wildfir...hatManager com.youquan.mobile                   D  init 192.168.0.194
    2024-03-08 17:23:06.124 11765-11765 cn.wildfir...hatManager com.youquan.mobile                   D  *************** SDK检查 *****************
    2024-03-08 17:23:06.124 11765-11765 cn.wildfir...hatManager com.youquan.mobile                   E  音视频SDK是多人版
    2024-03-08 17:23:06.125 11765-11765 cn.wildfir...hatManager com.youquan.mobile                   E  检查朋友圈 SDK 失败: cn.wildfirechat.moment.MomentClient
    2024-03-08 17:23:06.125 11765-11765 cn.wildfir...hatManager com.youquan.mobile                   E  错误,对讲SDK跟域名不匹配。请检查SDK的授权域名是否与当前使用的域名一致。
    2024-03-08 17:23:06.125 11765-11765 cn.wildfir...hatManager com.youquan.mobile                   D  *************** SDK检查 *****************
    2024-03-08 17:23:06.130 11765-11765 cn.wildfir...hatManager com.youquan.mobile                   D  clientId bde1aceb-5c6d-457e-987a-407cfda440041709820848929
    2024-03-08 17:23:06.230 11765-11765 cn.wildfir...hatManager com.youquan.mobile                   D  startLog
    2024-03-08 17:23:06.914 11765-11765 cn.wildfir...hatManager com.youquan.mobile                   D  marsClientService connected
    2024-03-08 17:23:06.936 11765-12034 cn.wildfir...hatManager com.youquan.mobile                   D  startLog
    2024-03-08 17:23:07.200 11765-11765 cn.wildfir...hatManager com.youquan.mobile                   D  connect gygqmws2k T9aQ2mZPqujBA/LOKgnq/M+bBDZRLu7uRHQjPJqaox+D6szzw02pWmJ2lXmc5xjVWxHai1df4sCjqCXYz4XCbXKbNksyXKkZQkO7y4yagVfRu/pjJYKbk4D2Sjdhjb1vCdQ5khgi4DSwfw1TLRKkPsl1QBZmwcJlyz02srh7UepmvONGn+mtP/Lw94ENPEnw
    2024-03-08 17:23:07.355 11765-12174 cn.wildfir...hatManager com.youquan.mobile                   D  connectionStatusChange -1
    2024-03-08 17:23:07.547 11765-11941 cn.wildfir...hatManager com.youquan.mobile                   D  connectionStatusChange 0
    2024-03-08 17:23:07.675 11765-12381 cn.wildfir...hatManager com.youquan.mobile                   D  setDeviceToken xPXcl4X1RhfB/Q2/Eh2vD5dYfIrrxE6DQCwi8SzdTU4rFvnWc6m9Pf8AmCkq2jdI 1
  • 莫语 1月前
    引用 16
    这是过滤出来的日志
  • x86 1月前
    引用 17
    莫语 这是过滤出来的日志
    你不能过滤,一定要 adb logcat > log.log 抓取完整日志,才能分析
  • 莫语 1月前
    引用 18

    完整日志信息

  • 莫语 1月前
    引用 19

    上传不了

  • 莫语 1月前
    引用 20
    上传云盘了

    链接:https://pan.baidu.com/s/15zDhedXBYJk4L96ffXJ-WA?pwd=m1vi 
    提取码:m1vi
  • x86 1月前
    引用 21

    client模块 SCHEDULE_EXACT_ALARM 权限的问题,最新代码已经解决,请更新

  • 莫语 1月前
    引用 22
    只用替换client模块就可以了吗
  • HeavyRain 1月前
    引用 23
    可以
返回