当前位置:网站首页>【避坑指南】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)一步一步跟着官方教程做,却无法捕获到异常
工具本身是为了节省时间的,如果要花费大量时间去排查那真不应该,强烈建议直接参考别人做好的吧。
边栏推荐
- C language strawberry
- Personal experience & blog status
- Junit5 支持suite的方法
- Project practice, redis cluster technology learning (16)
- 2837xd code generation - Supplement (3)
- It is the most difficult to teach AI to play iron fist frame by frame. Now arcade game lovers have something
- 滲透測試的介紹和防範
- 2837xd代码生成模块学习(4)——idle_task、Simulink Coder
- Brief analysis of edgedb architecture
- 职业规划和发展
猜你喜欢
Sil/pil test of matlab code generation
【虚幻】自动门蓝图笔记
2837xd代码生成模块学习(1)——GPIO模块
Following nym, the new project Galaxy token announced by coinlist is gal
Bugkuctf-web24 (problem solving ideas and steps)
Image recognition - data annotation
UE5——AI追逐(藍圖、行為樹)
2837xd code generation - stateflow (3)
Kinect DK obtains color RGB images in cv:: mat format (used in openpose)
Blender海洋制作
随机推荐
虚幻材质编辑器基础——如何连接一个最基本的材质
go语言入门
Mysql索引
Because of hard work, the fruit goes with fate
Leetcode -- the nearest common ancestor of 236 binary tree
Matlab生成dsp程序——官方例程学习(6)
Project practice, redis cluster technology learning (6)
阿里云SLS日志服务
[leetcode] sword finger offer 53 - I. find the number I in the sorted array
2837xd Code Generation - Supplement (1)
Remember a simple Oracle offline data migration to tidb process
Alibaba cloud ack introduction
This monitoring system makes workers tremble: turnover intention and fishing can be monitored. After the dispute, the product page has 404
[ue5] animation redirection: how to import magic tower characters into the game
Pycaret | a few lines of code to solve machine learning modeling
How to judge the quality of primary market projects when the market is depressed?
Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer
Image recognition - data augmentation
What is call / cc- What is call/cc?
Introduction to go language