BuglyDevTeam / Bugly-Android-Demo

Bugly Android SDK 使用例子
Apache License 2.0
812 stars 307 forks source link

基准apk 不联网上报,添加 Beta.init 后 , 才能成功联网上报。 #260

Open amokGithub opened 4 years ago

amokGithub commented 4 years ago

讲道理日志上报的日志是在 CrashReport: Beta init start.... 和 CrashReport: Beta init finished...中间, 但是没有出现这2个log。没有成功联网, 补丁上传 提示未联网。 排查后, 发现联网上报的日志打印, 要在 Beta.init(this, true);这个方法里执行,但是文档只提到了了 Bugly.init 和 Beta.installTinker();。 点进去看貌似也没有调用到 Beta.init。 抱着试一试的心态,在 Bugly.init 的后面加上了Beta.init 运行 。。。。 就成功联网上报了。。 是哪里没配置对么? 都按照文档来的,除了版本是最新的。 api 'com.tencent.bugly:crashreport_upgrade:1.4.2' api('com.tencent.tinker:tinker-android-lib:1.9.14.5') classpath "com.tencent.bugly:tinker-support:1.2.1" enableProxyApplication = true

我将所有版本改成和文档完全一致后(crashreport_upgrade:1.3.6 ,tinker 1.9.9 , tinker-support1.3.5),发现也没有联网日志。

异常类型

基准apk 不联网上报

手机型号

红米K20pro

手机系统版本

miui12 Android Q

Tinker版本

1.9.14.5

gradle版本

com.android.tools.build:gradle:3.2.1 gradle-4.6-all.zip

系统

windows 10

堆栈/日志

/CrashReport: [Strategy] Notify com.tencent.bugly.CrashModule /CrashReport: server native changed to true /CrashReport: native changed to true /CrashReport: [Native] Trying to load so: Bugly /CrashReport: Uploading frequency will not be checked if SDK is in debug mode. /CrashReport: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.shenma.passenger-0iXGGZ4JiLfz3fPgRAUxPg==/base.apk"],nativeLibraryDir /CrashReport: [Native] Failed to load so: Bugly /CrashReport: server anr changed to true /CrashReport: [AsyncTaskHandler] Post a delay(time: 3000ms) task: com.tencent.bugly.crashreport.crash.c$2 /CrashReport: [Database] deleted t_ui data 1 /CrashReport: [UserInfo] Upload user info(size: 1) /CrashReport: summary type 1 vm:8 /CrashReport: [aq] Successfully get 'getprop' list. /CrashReport: [aq] System properties number: 799. /CrashReport: [b] ABI list: arm64-v8a,armeabi-v7a,armeabi /CrashReport: ROM ID: XiaoMi/MIUI/V12 /CrashReport: SIM serial number: null /CrashReport: Hardware serial number: unknown /CrashReport: Is it a virtual machine? false /CrashReport: Does it has hook frame? false /CrashReport: [AppInfo] Beacon channel file path: channel.ini /CrashReport: [AppInfo] Failed to get get beacon channel /CrashReport: Beacon channel /CrashReport: Failed to get boot time of device. /CrashReport: [UploadManager] Add upload task (pid=10307 | tid=10367) /CrashReport: [UploadManager] Initialize security context now (pid=10307 | tid=10367) /CrashReport: [UploadManager] Add upload task to queue (pid=10307 | tid=10367) /CrashReport: [UploadManager] Create and start a new thread to execute a task of initializing security context: BUGLY_ASYNC_UPLOAD /CrashReport: [Util] Try to lock file:security_info (pid=10307 | tid=10381) /CrashReport: [Util] Successfully locked file: security_info (pid=10307 | tid=10381) /CrashReport: [UploadManager] Load security info from database (pid=10307 | tid=10381) /CrashReport: [UploadManager] Sucessfully got session ID, try to execute upload tasks now (pid=10307 | tid=10381) /CrashReport: [UploadManager] Try to poll all upload task need and put them into temp queue (pid=10307 | tid=10381) /CrashReport: [UploadManager] Execute urgent upload tasks of queue which has 1 tasks (pid=10307 | tid=10381) /CrashReport: [UploadManager] Create and start a new thread to execute a upload task: BUGLY_ASYNC_UPLOAD /CrashReport: [AsyncTaskHandler] Post a normal task: com.tencent.bugly.proguard.ak$2 /CrashReport: [Util] Try to unlock file: security_info (pid=10307 | tid=10381) /CrashReport: [Util] Successfully unlocked file: security_info (pid=10307 | tid=10381) /CrashReport: [Upload] Run upload task with cmd: 840 /CrashReport: [UploadManager] Integrate security to HTTP headers (pid=10307 | tid=10383) /CrashReport: [Util] Zip 1377 bytes data with type Gzip /CrashReport: [Database] deleted t_lr data 1 /CrashReport: [Database] insert t_lr success. /CrashReport: [UploadManager] Uploading(ID:1001) time: 2020-09-11 17:34:49 /CrashReport: [Upload] Send 923 bytes /CrashReport: [Upload] Upload to http://android.bugly.qq.com/rqd/async?aid=ccef160a-d4eb-4f3a-8603-69aa2e905bd9 with cmd 840 (pid=10307 | tid=10383). /CrashReport: request: http://android.bugly.qq.com/rqd/async?aid=ccef160a-d4eb-4f3a-8603-69aa2e905bd9, send: 923 (pid=10307 | tid=10383) /CrashReport: [Upload] Bugly version from headers is: bugly/1.0 /CrashReport: [Upload] Status from server is 0 (pid=10307 | tid=10383).

wangchang163 commented 4 years ago

+1

wangchang163 commented 4 years ago

华为p10