当前位置:网站首页>【避坑指南】Unity3D项目接入腾讯Bugly工具时遇到的坑
【避坑指南】Unity3D项目接入腾讯Bugly工具时遇到的坑
2022-07-02 06:36:00 【趁着头发多我想做游戏】
(1)用Javac编译后报错信息显示为乱码
控制台输入 chcp 看一下当前页编码是不是936,不是的话输入 chcp 936 修改为 GBK 编码即可查看。
(2)如何使用CrashReport
调用 CrashReport.initCrashReport(getApplicationContext(), "xxxx", false);报错 ,要先导入包:
import com.tencent.bugly.crashreport.CrashReport;
(3)build.gradle导入插件后编译失败
按照官方手册:
implementation 'com.tencent.bugly:crashreport:latest.release'
implementation 'com.tencent.bugly:nativecrashreport:latest.release'
导入插件后报错 Duplicate class xxxxx found in modules xxxxx 之类的,是提示导入了重复的类,把重复的那个从 implementation 修改为 compileOnly 即可。
(4) 如何看Bugly的日志
手机连接电脑,控制台输入 adb logcat CrashReportInfo:I >buglyLog.txt ,表示把标签为CrashReportInfo的级别在 I 以上的日志输出到根目录下的 buglyLog.txt 中。
(5)一步一步跟着官方教程做,却无法捕获到异常
工具本身是为了节省时间的,如果要花费大量时间去排查那真不应该,强烈建议直接参考别人做好的吧。
边栏推荐
- Project practice, redis cluster technology learning (10)
- Error reporting on the first day of work (incomplete awvs unloading)
- 阿里云SLS日志服务
- High level application of SQL statements in MySQL database (II)
- Vscode auto format
- Data insertion in C language
- Is the C language too fat
- Junit5 支持suite的方法
- 2837xd代码生成模块学习(3)——IIC、eCAN、SCI、Watchdog、eCAP模块
- Personal experience & blog status
猜你喜欢
随机推荐
Summary of demand R & D process nodes and key outputs
Error reporting on the first day of work (error reporting when Nessus installs WinPcap)
What wires are suitable for wiring on bread board?
[unreal] key to open the door blueprint notes
Skywalking理论与实践
2837xd代码生成模块学习(4)——idle_task、Simulink Coder
Remember the use of add method once
Junit5 支持suite的方法
Matlab generates DSP program -- official routine learning (6)
Blender multi lens (multi stand) switching
Image recognition - data augmentation
Memories of a chat
Ue5 - ai Pursuit (Blueprint, Behavior tree)
UE4夜间打光笔记
Project practice, redis cluster technology learning (16)
How to handle error logic gracefully
Blender模型导入ue、碰撞设置
阿里云ack介绍
Sil/pil test of matlab code generation
Error reporting on the first day of work (incomplete awvs unloading)









