elastic / apm-agent-android

Elastic APM Android Agent
Apache License 2.0
20 stars 6 forks source link

Unexpected type reference on method: 16 #356

Open mrzbn opened 4 days ago

mrzbn commented 4 days ago

I'm trying to setup apm agent in my android project and after a lot of struggle with other build errors, I face this error:Image

LikeTheSalad commented 3 days ago

Hi @mrzbn

Thank you for your feedback. It seems like the issue you're running into is very similar, hence probably shares the same root cause, as this Byte Buddy one, which looks like will get fixed in Byte Buddy's next release. Now, even though it looks like it's the same issue, it would still be very helpful to get more details on your environment to make sure we're addressing this specific one, such as:

I'll keep you posted on this issue once the new Byte Buddy version is released and we have it available on our agent. In the meantime, if you like you could still use our agent by manually installing it (without adding our gradle plugin, which is the one that relies on Byte Buddy) though the downside would be that there will no auto-instrumentation for OkHttp requests with that approach.

Regarding:

after a lot of struggle with other build errors

We're sorry to hear that, if you don't mind sharing more details on those build errors you had to address, we will make sure to improve our agent to make it easier to install in future versions.

Thank you for your patience.