共用方式為


.NET for Android error XA4248

範例訊息

error XA4248: Could not find NuGet package 'Xamarin.Kotlin.StdLib' version '1.9.0' in lock file. Ensure NuGet Restore has run since this <PackageReference> was added.

問題

The NuGet lock file has not been generated and thus Java dependencies from NuGet packages cannot be resolved.

解決方法

Run NuGet Restore for the project to ensure the lock file has been generated.