.NET for Android error XA4242

Example message

Java dependency '{0}' is not satisfied. Microsoft maintains the NuGet package '{1}' that could fulfill this dependency.

error XA4242: Java dependency 'org.jetbrains.kotlin:kotlin-stdlib:1.9.0' is not satisfied.
Microsoft maintains the NuGet package 'Xamarin.Kotlin.StdLib' that could fulfill this dependency.

Issue

The specified Java dependency could not be verified using the Java Dependency Verification feature.

Solution

Add a reference to the specified NuGet package to the project.

Alternatively, choose one of the other available options in the Resolving Java Dependencies documentation.