Skip to content

AppCenter cannot deobfuscate Android R8 code #458

@DeweyReed

Description

@DeweyReed

What App Center service does this affect?
Crashes.

Describe the bug
With Android Studio 3.4, R8 becomes the default code shrinker. But AppCenter cannot deobfuscate R8 code with mappings.txt.

For example, the real stacktrace from logcat: at d.a.a.a.onClick(Unknown Source:0) which can be deobfuscated but the stacktrace that AppCenter captures is at d.a.a.a.onClick. Without the postfix, the stacktrace cannot be deobfuscated by AppCenter.

To Reproduce
Steps to reproduce the behavior:

  1. Create a basic application using Android Studio 3.4 or higher
  2. Add AppCenter Android SDK dependency
  3. Throw an exception anywhere
  4. Enable code shrink
  5. Build the APK
  6. Trigger the crash, compare stacktraces and retrace them manually.

Expected behavior
AppCenter should be able to deobfuscate the code after I switch from proguard to R8.

Smartphone (please complete the following information):

  • Device: All Android Devices
  • OS: All Android OS

Metadata

Metadata

Assignees

No one assigned

    Labels

    diagnosticsRelated to App Center's Diagnostics servicefeature requestNew feature requesthockeyappRelated to HockeyApp's transition to App Center

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions