当前位置:网站首页>【避坑指南】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)一步一步跟着官方教程做,却无法捕获到异常
工具本身是为了节省时间的,如果要花费大量时间去排查那真不应该,强烈建议直接参考别人做好的吧。
边栏推荐
- What wires are suitable for wiring on bread board?
- Minimum number of C language
- C language: making barrels
- How to achieve the top progress bar effect in background management projects
- 2837xd 代碼生成——補充(1)
- UE5——AI追逐(藍圖、行為樹)
- 阿里云短信服务
- 虚幻——动画蓝图、状态机制作人物走跑跳动作
- 2837xd代码生成模块学习(4)——idle_task、Simulink Coder
- Junit5 supports suite methods
猜你喜欢
Blender多鏡頭(多機比特)切換
Blender多镜头(多机位)切换
阿里云SLS日志服务
2837xd code generation - stateflow (1)
Mixed development of uni app -- Taking wechat applet as an example
High level application of SQL statements in MySQL database (II)
2837xd code generation module learning (3) -- IIC, ECAN, SCI, watchdog, ECAP modules
Matlab代码生成之SIL/PIL测试
Brief analysis of edgedb architecture
2837xd Code Generation - Supplement (1)
随机推荐
Ue5 - ai Pursuit (Blueprint, Behavior tree)
Blender摄像机环绕运动、动画渲染、视频合成
【UE5】蓝图制作简单地雷教程
A model can do two things: image annotation and image reading Q & A. VQA accuracy is close to human level | demo can be played
2837xd code generation - stateflow (1)
The primary market project galaxy will conduct public offering on coinlist on February 17
Blender多镜头(多机位)切换
Project practice, redis cluster technology learning (IX)
How much is it to develop a system software in Beijing, and what funds are needed to develop the software
Kinect DK obtains color RGB images in cv:: mat format (used in openpose)
[illusory] weapon slot: pick up weapons
Record the interesting process of using Xray for the first time
2837xd代码生成模块学习(1)——GPIO模块
Image recognition - data annotation
职业规划和发展
Mysql索引
ERROR 1118 (42000): Row size too large (> 8126)
Junit4 runs MVN test test suite upgrade scheme
[unreal] key to open the door blueprint notes
Deep understanding of redis cache avalanche / cache breakdown / cache penetration