当前位置:网站首页>【避坑指南】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)一步一步跟着官方教程做,却无法捕获到异常
工具本身是为了节省时间的,如果要花费大量时间去排查那真不应该,强烈建议直接参考别人做好的吧。
边栏推荐
- Introduction and prevention of penetration test
- 【避坑指南】使用UGUI遇到的坑:Text组件无法首行缩进两格
- Career planning and development
- UE illusory engine programmed plant generator setup -- how to quickly generate large forests
- How to achieve the top progress bar effect in background management projects
- Matlab代码生成之SIL/PIL测试
- Blender multi lens (multi stand) switching
- Binary and decimal system of C language
- Commutateur Multi - lentilles Blender
- Blender多镜头(多机位)切换
猜你喜欢
随机推荐
Matlab生成dsp程序——官方例程学习(6)
[illusory] automatic door blueprint notes
Alibaba cloud Prometheus monitoring service
2837xd代码生成模块学习(2)——ADC、ePWM模块、Timer0
【Unity3D】无法正确获取RectTransform的属性值导致计算出错
2837xd 代码生成——StateFlow(2)
Notes de base sur les plans illusoires d'IA (triés en 10 000 mots)
虚幻AI蓝图基础笔记(万字整理)
[ue5] blueprint making simple mine tutorial
What wires are suitable for wiring on bread board?
Blender模型导入ue、碰撞设置
Ue5 - AI pursuit (blueprint, behavior tree)
Alibaba cloud SMS service
Bugkuctf-web21 (detailed problem solving ideas and steps)
【虚幻4】UMG组件的简介与使用(更新中...)
【虚幻】武器插槽:拾取武器
Illusion -- Animation blueprint, state machine production, character walking, running and jumping action
【leetcode】33. Search rotation sort array
Configuration programmée du générateur de plantes du moteur illusoire UE - - Comment générer rapidement une grande forêt
Translation d30 (with AC code POJ 28:sum number)









