How to keep original line numbers in stack traces with R8?

后端 未结 1 1690
-上瘾入骨i
-上瘾入骨i 2021-01-23 23:47

I\'m trying to figure out how to keep original line numbers with R8.

Doing an app with current AndroidStudio and obfuscating it with R8, and even uploading mapping.

1条回答
  •  一生所求
    2021-01-24 00:34

    In order for correct retracing of obfuscated stack traces it is required to have the following in the configuration file

     -keepattributes LineNumberTable,SourceFile
    

    See https://developer.android.com/studio/build/shrink-code#decode-stack-trace for moe information.

    0 讨论(0)
提交回复
热议问题