Skip to content
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

Desugaring is required if app does not support API levels 21 to 25 #1052

Open
magdamagda opened this issue Nov 4, 2024 · 0 comments
Open

Comments

@magdamagda
Copy link

According to the documentation https://docs.splunk.com/observability/en/gdi/get-data-in/rum/android/install-rum-android.html

To instrument applications that run on Android API levels 21 to 25, you must activate desugaring.

Our application min sdk version is 30, however we still need to activate desugaring to use com.splunk:splunk-otel-android:1.7.0. Otherwise we see an error:

Execution failed for task ':xxx:checkGeneralDevDebugAndroidTestAarMetadata'.
 > A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
    > 3 issues were found when checking AAR metadata:
      
      1.  Dependency ':xxx' requires core library desugaring to be enabled
            for :xxx.   
          See https://developer.android.com/studio/write/java8-support.html for more
           details.
    
      2.  Dependency 'com.splunk:splunk-otel-android:1.7.0' requires core library desugaring to be enabled
           for :xxx.    
         See https://developer.android.com/studio/write/java8-support.html for more
           details.
    
      3.  Dependency 'io.opentelemetry.android:instrumentation:0.4.0-alpha' requires core library desugaring to be enabled
         for :xxxx.
       See https://developer.android.com/studio/write/java8-support.html for more
         details.

(Replaced our package name with xxx).

Is it expected? Is it possible to use the newest version of splunk-otel-android with min sdk 30 without desugaring?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant