As part of building our Android app I can see ProGuard mappings are uploaded to Sentry, thus the Gradle plugin and Sentry auth token seem to be set up correctly. The mappings show up on sentry.io under “Debug Files”.
However, when issues with stack traces are sent to Sentry (in this case an uncaught exception), I see obfuscated stack traces and I do not see an option to see ‘symbolicated’ stack traces as per the documentation.
When looking at the raw JSON of the event, I notice no debug image is configured; judging by reading the Sentry dev documentation, I have the impression there should be a uuid set, corresponding to the uploaded ProGuard mapping, which is not there.
I therefore expect this missing information is why the events cannot be symbolicated, but I do not know how to verify this. E.g., I cannot manipulate the events to add this data, and the documentation on Sentry configuration for Android does not indicate any extra work to make this work.
What could be the cause for this not working? How do I investigate further?
Sounds like you did everything right. Usually the problems are:
Not uploading proguard mapping files.
Not using the plugin so the debug_meta isn’t in the event.
Could you confirm the id in the debug_meta matches the id of the mapping file in the project settings? That’s how Sentry find the right file. It’s a guid.
This is the problem: there is no debug_meta present in the events. Could it be that the plugin somehow succeeds in uploading the mapping files, but not in attaching debug_meta to events?
Yes, this project is on SaaS (organization: iMotions, project: android).
The Sentry plugin is loaded using the plugins DSL.
plugins {
...
id("io.sentry.android.gradle")
}
I guess this pulls in the latest: 1.7.36? I don’t know.
I just discovered my project only pulls in io.sentry:sentry-android-core for the runtime library, and not the one from the documentation io.sentry:sentry-android. Maybe this could be the cause? Will try a build now …