Issue
The XA5300 error is generated when the required Android SDK or Java SDK cannot be located during the build.
解决方案
This can be fixed on the command-line by overriding either the $(AndroidSdkDirectory)
or $(JavaSdkDirectory)
MSBuild properties:
dotnet build -p:AndroidSdkDirectory=path/to/android/sdk -p:JavaSdkDirectory=path/to/jdk
Instructions to manually install the Android SDK or Java SDK are at: https://aka.ms/dotnet-android-install-sdk
This can also be fixed within Visual Studio options.
如果在正常情况下遇到此故障,请考虑提交 bug 。