Is Java 8 features available for Xamarin.Android in Java binding project?

前端 未结 1 804
抹茶落季
抹茶落季 2021-01-19 02:02

I have an android library project that uses Java 8 features, i.e. via

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibilit         


        
1条回答
  •  野的像风
    2021-01-19 02:49

    Use the latest Visual Studio 2019 Preview 2.2 and add d8 into the csproj of your android project, one for each Debug/Release build

    D8 is the new dexer made by google and it enable Desugar mode by default.

    0 讨论(0)
提交回复
热议问题