How to debug with obfuscated (with ProGuard) applications on Android?

前端 未结 5 1633
遥遥无期
遥遥无期 2020-12-12 12:50

When I got something like this

ERROR/AndroidRuntime(18677): Caused by: java.lang.NullPointerException
ERROR/AndroidRuntime(18677):     at com.companyname.a.a         


        
5条回答
  •  时光取名叫无心
    2020-12-12 13:00

    To retrace back obfuscated ProGuard file do the following steps:

    1. You need to install Proguard.

    2. Proguard provides you with a UI mode which is great tool to retrace.

    3. Open up the proguardgui.sh which you find it in MAC machine

      /Users/{name}/Library/Android/sdk/tools/proguard/bin/proguardgui.sh
      

      You can run it through the terminal.

    proguardgui

    1. You can then enter your mapping file and the snipped you want to retrace and it should be retraced

    proguardgui outputs

提交回复
热议问题