-
Notifications
You must be signed in to change notification settings - Fork 800
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AbstractMethodError crash on Android #4161
Comments
I believe there is a bug with desugaring with AGP 7.x. See this bug that I logged many months ago with the Android team: https://issuetracker.google.com/issues/202188674 Can you downgrade to AGP 4.1.2 and see if that fixes the issue? |
We cannot downgrade as we use jetpack compose and the issue you linked to is specific to API level 21 while we have minsdk 23. |
I found that issue at API 21, but it also occurs at 23. This is definitely a real bug in the AGP that breaks core-library desugaring. |
This is working without desugaring as long as we run on API >= 26. (E.g. API 23 would crash with |
@ber4444 Please please please comment on that google ticket that I logged. We really need the Android team to fix this AGP bug, and they won't do it without people saying that they need it. Why won't jetpack-compose work with a 4.x AGP version? |
I believe the issue is that desugaring handles calls to |
@laurit Thanks for the digging! Does implementing in the subclass just calling |
@anuraaga yes, just calling super works
gets transformed to
|
Describe the bug
Steps to reproduce
Run sample Android app with the Splunk SDK that uses OpenTelemetry.
What did you expect to see?
No crash
What did you see instead?
Crashes as the Splunk SDK initializes.
What version and what artifacts are you using?
Artifacts: https://github.com/signalfx/splunk-otel-android
Version: com.splunk:splunk-otel-android:0.12.0, seems to be using opentelemetry 1.6.0
How did you reference these artifacts? (excerpt from your
build.gradle
,pom.xml
, etc)Environment
OS: Android 10
Only happens in release mode (proguard rules likely incomplete... what they shipped is https://github.com/signalfx/splunk-otel-android/blob/9d51a1feffb765a741463fb15d59555af354e2b6/splunk-otel-android/consumer-rules.pro)
We are using AGP 7.1.0 and minSdk = 23
The text was updated successfully, but these errors were encountered: