Open alex-oczkowski-arq-group opened 3 months ago
Hi @alex-oczkowski-arq-group
Thank you for the details, I would like to confirm a couple of things. Are you using our plugin? Or are you setting up the agent manually? And also please let me know which version of the agent you are using.
I am setting up the agent manually. The version is
implementation 'co.elastic.apm:android-sdk:0.17.0'
Hi @alex-oczkowski-arq-group
Thank you for your patience. I've tested version 0.17.0
on emulators with API 32, 31, and 30 and I couldn't reproduce this issue.
Based on the stacktrace you've shared, it seems like some OTel classes might be missing due to the part that reads:
Unresolved Reference: io.opentelemetry.api.incubator.metrics.DoubleGauge
The reason why I mentioned if you were using our plugin is because our plugin does bytecode manipulation, which is the kind of action that might cause the issue that you mentioned, however, since that's not the case, then another reason I could think of might be that a tool like R8 could be removing said classes, although it shouldn't be the case as we've added proguard rules to prevent it from happening to OTel classes.
Based on the above, there are a couple of things I could recommend trying:
If none of the above works, the only thing left would be if you can provide a demo app where this issue is reproducible, so that I can take a more detailed look at it.
Hi, I've been getting the following crash with Android versions 11 and 12
My code to initialise Elastic is
which is happening just after the Application onCreate super call.
Commenting out the Elastic monitoring initialisation method above prevents the crash.
On the Android versions mentioned below, there are no issues and everything is coming through as expected.
Any ideas what could be the issue?
Update: Testing results on my Pixel 3a emulator for different Android versions (API level) Works: 34, 33, 29, 28 Not working: 32, 31, 30