Kev*_*rlo 30 logcat android-studio android-studio-3.1
自新版Android Studio(3.1)以来,Logcat窗口并不总是显示前缀(03-28 12:43:01.091 nl.test.app D/log).我制作了自己的记录器,它以漂亮的方式打印,但由于某些行不再具有相同的缩进,因此会被破坏.我将在下面展示一个例子.
03-28 12:43:01.091 nl.test.app D/log: ????????????????????????????????????????????????????????????????????????????????????????
    ? [ (TestActivity.kt:33)#OnCreate ] 
    ? This is my test log
03-28 12:43:01.092 nl.test.app D/log: ? This is my second test log
    ????????????????????????????????????????????????????????????????????????????????????????
这是以前的方式:
03-28 12:43:01.091 nl.test.app D/log: ????????????????????????????????????????????????????????????????????????????????????????
03-28 12:43:01.091 nl.test.app D/log: ? [ (TestActivity.kt:33)#OnCreate ] 
03-28 12:43:01.091 nl.test.app D/log: ? This is my test log
03-28 12:43:01.092 nl.test.app D/log: ? This is my second test log
03-28 12:43:01.092 nl.test.app D/log: ????????????????????????????????????????????????????????????????????????????????????????
有没有办法解决这个问题?
Kev*_*rlo 13
根据问题跟踪器(https://issuetracker.google.com/issues/77305804),它已修复并计划用于Android Studio 3.2.引用问题跟踪器:
这种行为的改变是无意的,我还原了它.修复将在3.2中出现.
它没有说明这个版本什么时候发布.但是一旦我知道,我就会更新我的答案.
编辑
Android Studio 3.2发布,我的漂亮记录器再次运行!
| 归档时间: | 
 | 
| 查看次数: | 2164 次 | 
| 最近记录: |