Skip to content

Bind library that uses Java 8+ API desugaring support #5523

@4brunu

Description

@4brunu

Hi,

I'm not sure if here is the right place to ask, but is it possible to bind a native android library (.aar), that uses Java 8+ API desugaring support?

https://developer.android.com/studio/write/java8-support

A library that uses for example import java.time.*

This is how the support for Java 8+ API desugaring is enabled in Android Studio.

android {
  defaultConfig {
    // Required when setting minSdkVersion to 20 or lower
    multiDexEnabled true
  }

  compileOptions {
    // Flag to enable support for the new language APIs
    coreLibraryDesugaringEnabled true
    // Sets Java compatibility to Java 8
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
  }
}

dependencies {
  coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.1'
}

Is there something like this for Xamarin?
Is it possible to bind a native android library (.aar) that was created with this configuration?
Because I couldn't find a nuget package equivalent to 'com.android.tools:desugar_jdk_libs:1.1.1'.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions