dotnet / dotnet/android-libraries

Warnings in output at _CompileToDalvik

Open
#542 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
317
Forks
73
Avg merge
1d 8h
Merged PRs (30d)
17

Description

### Version Information

- Visual Studio version (eg. 16.8 or 8.8): 16.11.13
- Xamarin.Android version (eg. 11.1): 12.0.0.3
- Using AndroidX or Support Libraries: AndroidX
- If Support Libraries, version (eg 28.0.0):

### Describe your Issue:

during compile of my Android part of XF apps, I noticed some warnings since last AndroidX nuget updates:

```
> 1>_CompileToDalvik:
> 1> C:\Program Files\Microsoft\jdk-11.0.14.101-hotspot\bin\java.exe -Xmx1G -classpath "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Xamarin\Android\r8.jar" com.android.tools.r8.D8 --debug --min-api 21 --output obj\Debug\120\android\bin\ --lib "C:\Program Files (x86)\Android\android-sdk\platforms\android-31\android.jar" obj\Debug\120\android\bin\classes.zip "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v12.0\mono.android.jar" "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Xamarin\Android\java_runtime_fastdev.jar" C:\Users\USERNAME\.nuget\packages\xamarin.jetbrains.annotations\23.0.0.3\buildTransitive\monoandroid12.0\..\..\jar\org.jetbrains.annotations-23.0.0.jar C:\Users\USERNAME\.nuget\packages\xamarin.kotlin.stdlib\1.6.21\buildTransitive\monoandroid12.0\..\..\jar\org.jetbrains.kotlin.kotlin-stdlib-1.6.21.jar C:\Users\USERNAME\.nuget\packages\xamarin.kotlin.stdlib.jdk7\1.6.21\buildTransitive\monoandroid12.0\..\..\jar\org.jetbrains.kotlin.kotlin-stdlib-jdk7-1.6.21.jar C:\Users\USERNAME\.nuget\packages\xamarin.kotlin.stdlib.jdk8\1.6.21\buildTransitive\monoandroid12.0\..\..\jar\org.jetbrains.kotlin.kotlin-stdlib-jdk8-1.6.21.jar C:\Users\USERNAME\.nuget\packages\xamarin.kotlinx.coroutines.core.jvm\1.6.0.1\buildTransitive\monoandroid12.0\..\..\jar\org.jetbrains.kotlinx.kotlinx-coroutines-core-jvm-1.6.0.jar C:\Users\USERNAME\.nuget\packages\xamarin.kotlinx.coroutines.android\1.6.0.1\buildTransitive\monoandroid12.0\..\..\jar\org.jetbrains.kotlinx.kotlinx-coroutines-android-1.6.0.jar C:\Users\USERNAME\.nuget\packages\xamarin.google.guava.listenablefuture\1.0.0.5\buildTransitive\monoandroid90\..\..\jar\guava-listenablefuture.jar C:\Users\USERNAME\.nuget\packages\xamarin.androidx.annotation\1.3.0.3\buildTransitive\monoandroid12.0\..\..\jar\androidx.annotation.annotation.jar C:\Users\USERNAME\.nuget\packages\xamarin.androidx.collection\1.2.0.3\buildTransitive\monoandroid12.0\..\..\jar\androidx.collection.collection.jar C:\Users\USERNAME\.nuget\packages\xamarin.androidx.lifecycle.common\2.4.1.1\buildTransitive\monoandroid12.0\..\..\jar\androidx.lifecycle.lifecycle-common.jar C:\Users\USERNAME\.nuget\packages\xamarin.androidx.arch.core.common\2.1.0.14\buildTransitive\monoandroid12.0\..\..\jar\androidx.arch.core.core-common.jar C:\Users\USERNAME\.nuget\packages\xamarin.androidx.concurrent.futures\1.1.0.8\buildTransitive\monoandroid12.0\..\..\jar\androidx.concurrent.concurrent-futures.jar C:\Users\USERNAME\.nuget\packages\xamarin.androidx.resourceinspection.annotation\1.0.1.1\buildTransitive\monoandroid12.0\..\..\jar\androidx.resourceinspection.resourceinspection-annotation.jar C:\Users\USERNAME\.nuget\packages\xamarin.androidx.constraintlayout.core\1.0.3.1\buildTransitive\monoandroid12.0\..\..\jar\androidx.constraintlayout.constraintlayout-core.jar obj\Debug\120\lp\100\jl\classes.jar obj\Debug\120\lp\101\jl\classes.jar obj\Debug\120\lp\102\jl\classes.jar obj\Debug\120\lp\103\jl\classes.jar obj\Debug\120\lp\103\jl\libs\repackaged.jar obj\Debug\120\lp\104\jl\classes.jar obj\Debug\120\lp\105\jl\classes.jar obj\Debug\120\lp\106\jl\classes.jar obj\Debug\120\lp\107\jl\classes.jar obj\Debug\120\lp\108\jl\classes.jar obj\Debug\120\lp\109\jl\classes.jar obj\Debug\120\lp\110\jl\classes.jar obj\Debug\120\lp\111\jl\classes.jar obj\Debug\120\lp\112\jl\classes.jar obj\Debug\120\lp\113\jl\classes.jar obj\Debug\120\lp\114\jl\classes.jar obj\Debug\120\lp\115\jl\classes.jar obj\Debug\120\lp\116\jl\classes.jar obj\Debug\120\lp\117\jl\classes.jar obj\Debug\120\lp\118\jl\classes.jar obj\Debug\120\lp\119\jl\classes.jar obj\Debug\120\lp\120\jl\classes.jar obj\Debug\120\lp\121\jl\classes.jar obj\Debug\120\lp\122\jl\classes.jar obj\Debug\120\lp\123\jl\classes.jar obj\Debug\120\lp\124\jl\classes.jar obj\Debug\120\lp\126\jl\classes.jar obj\Debug\120\lp\127\jl\classes.jar obj\Debug\120\lp\128\jl\classes.jar obj\Debug\120\lp\2\jl\formsviewgroup.jar obj\Debug\120\lp\75\jl\classes.jar obj\Debug\120\lp\76\jl\classes.jar obj\Debug\120\lp\77\jl\classes.jar obj\Debug\120\lp\78\jl\classes.jar obj\Debug\120\lp\79\jl\classes.jar obj\Debug\120\lp\80\jl\classes.jar obj\Debug\120\lp\81\jl\classes.jar obj\Debug\120\lp\82\jl\classes.jar obj\Debug\120\lp\83\jl\classes.jar obj\Debug\120\lp\84\jl\classes.jar obj\Debug\120\lp\85\jl\classes.jar obj\Debug\120\lp\86\jl\classes.jar obj\Debug\120\lp\87\jl\classes.jar obj\Debug\120\lp\88\jl\classes.jar obj\Debug\120\lp\89\jl\classes.jar obj\Debug\120\lp\90\jl\classes.jar obj\Debug\120\lp\91\jl\classes.jar obj\Debug\120\lp\92\jl\classes.jar obj\Debug\120\lp\93\jl\classes.jar obj\Debug\120\lp\94\jl\classes.jar obj\Debug\120\lp\95\jl\classes.jar obj\Debug\120\lp\96\jl\classes.jar obj\Debug\120\lp\97\jl\classes.jar obj\Debug\120\lp\98\jl\classes.jar obj\Debug\120\lp\99\jl\classes.jar
> 1> **Warning** in obj\Debug\120\lp\114\jl\**classes.jar:androidx/window/layout/SafeWindowLayoutComponentProvider$windowLayoutComponent$2.class:
> 1> Type `androidx.window.extensions.WindowExtensionsProvider` was not found, it is required for default or static interface methods desugaring of `Landroidx/window/layout/SafeWindowLayoutComponentProvider$windowLayoutComponent$2;invoke()Landroidx/window/extensions/layout/WindowLayoutComponent;`**
> 1> **Warning** in obj\Debug\120\lp\114\jl\**classes.jar:androidx/window/layout/SidecarCompat$Companion.class:
> 1> Type `androidx.window.sidecar.SidecarProvider` was not found, it is required for default or static interface methods desugaring of `Landroidx/window/layout/SidecarCompat$Companion;getSidecarVersion()Landroidx/window/core/Version;`**
> 1> **Warning** in **C:\Users\USERNAME\.nuget\packages\xamarin.kotlinx.coroutines.core.jvm\1.6.0.1\buildTransitive\monoandroid12.0\..\..\jar\org.jetbrains.kotlinx.kotlinx-coroutines-core-jvm-1.6.0.jar:kotlinx/coroutines/debug/AgentPremain.class:
> 1> Type `sun.misc.Signal` was not found, it is required for default or static interface methods desugaring of `Lkotlinx/coroutines/debug/AgentPremain;installSignalHandler()V`**
> 1> **Warning** in obj\Debug\120\lp\114\jl\**classes.jar:androidx/window/layout/SidecarCompat$DistinctSidecarElementCallback.class:
> 1> Type `androidx.window.sidecar.SidecarInterface$SidecarCallback` was not found, it is required for default or static interface methods desugaring of `androidx.window.layout.SidecarCompat$DistinctSidecarElementCallback`**
> 1> **Warning** in C:\Users\USERNAME\.nuget\packages\xamarin.kotlinx.coroutines.core.jvm\1.6.0.1\buildTransitive\monoandroid12.0\..\..\jar\**org.jetbrains.kotlinx.kotlinx-coroutines-core-jvm-1.6.0.jar:kotlinx/coroutines/internal/ClassValueCtorCache$cache$1.class:
> 1> Type `java.lang.ClassValue` was not found, it is required for default or static interface methods desugaring of `kotlinx.coroutines.internal.ClassValueCtorCache$cache$1`**
> 1> **Warning** in C:\Users\USERNAME\.nuget\packages\xamarin.kotlinx.coroutines.core.jvm\1.6.0.1\buildTransitive\monoandroid12.0\..\..\jar\**org.jetbrains.kotlinx.kotlinx-coroutines-core-jvm-1.6.0.jar:kotlinx/coroutines/debug/AgentPremain$DebugProbesTransformer.class:
> 1> Type `java.lang.instrument.ClassFileTransformer` was not found, it is required for default or static interface methods desugaring of `kotlinx.coroutines.debug.AgentPremain$DebugProbesTransformer`**
> 1> **Warning** in obj\Debug\120\lp\114\jl\**classes.jar:androidx/window/embedding/EmptyEmbeddingComponent.class:
> 1> Type `androidx.window.extensions.embedding.ActivityEmbeddingComponent` was not found, it is required for default or static interface methods desugaring of `androidx.window.embedding.EmptyEmbeddingComponent`**
> 1> **Warning in synthesized for lambda desugaring:
> 1> Type `sun.misc.SignalHandler` was not found, it is required for default or static interface methods desugaring of `kotlinx.coroutines.debug.-$$Lambda$AgentPremain$8e1eAWGNJu9vYr96rU9gzKJ_uMQ`**
> 1> Creating "obj\Debug\120\stamp\_CompileToDalvik.stamp" because "AlwaysCreate" was specified.
```

### Steps to Reproduce (with link to sample solution if possible):

Add the following packages to the app:

```


7.2.0.564


1.4.3


0.4.1


6.0.4


6.0.4


6.0.4


6.0.4


6.0.4


6.0.4


6.0.4


6.0.0


3.3.3
runtime; build; native; contentfiles; analyzers; buildtransitive
all


4.1.0


4.1.0


6.0.1


6.0.0


6.0.0


6.0.0


6.0.0


6.0.0


6.0.1


6.0.0


6.0.0


6.0.0


13.0.1


4.5.1


6.0.0


6.0.2


4.5.4


4.5.0


6.0.1


6.0.0


6.0.0


6.0.0


6.0.0


6.0.0


6.0.3


6.0.0


4.5.4


1.4.0.2


1.3.0.3


2.1.0.14


2.1.0.14


1.1.0.8


2.1.3.1


1.0.3.1


1.0.0.13


1.0.0.14


2.4.1.1


2.4.1.1


2.4.1.1


2.4.1.1


2.4.1.1


2.0.1.13


1.1.0.13


1.1.0.9


1.0.0.13


1.2.0.3


1.7.0.2


1.2.0.1


1.0.0.14


1.0.0.13


1.0.0.13


1.4.0.1


1.1.0.12


1.0.0.15


1.0.0.8


1.5.0.2


1.0.1.13


1.1.1.8


1.4.1.1


1.0.0.13


1.1.0.13


1.1.0.1


1.6.0


1.0.0.13


1.2.0.1


1.1.0.8


1.0.0.6


1.4.1.6


1.0.0.13


1.4.1.1


1.0.0.15


1.3.0


1.0.0.13


1.2.1.6


1.1.0.13


1.1.1.13


1.0.0.13


1.7.3


5.0.0.2401


1.6.21


1.6.21


1.6.0.1


1.6.0.1


```

### Include any relevant Exception Stack traces, build logs, adb logs:

### Sample:

[AndroidXWarningsDemoApp.zip](https://github.com/xamarin/AndroidX/files/8658760/AndroidXWarningsDemoApp.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.