在 Mac 上開發的新手。試圖讓 Android 模擬器運行。我有最新的帶有 M1Chip 的 MacBook Air。當我運行 Android 模擬器時,我收到此警告并且模擬器永遠不會啟動:
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Tooling.targets(5,5): Warning: An exception occurred while validating the Java SDK installation in '/Library/Java/JavaVirtualMachines/temurin-1.jdk/Contents/Home' that was found while searching the paths from 'monodroid-config.xml'. Ensure that the Android section of the Visual Studio options has a valid Java SDK directory configured. To use a custom SDK path for a command line build, set the 'JavaSdkDirectory' MSBuild property to the custom path. Exception: Not a directory
Parameter name: homePath (NoteTaker.Android)
uj5u.com熱心網友回復:
Java SDK 的路徑不正確或 SDK 已損壞。
首先,您應該從Oracle 網站下載最新版本的 Java SDK 。
然后在 Visual Studio 中,您需要導航到Preferences > Projects > SDK Locations > Android > Locations。
您需要將 Java SDK 路徑更新為您下載的新 SDK。
例如 /Library/Java/JavaVirtualMachines/ SDK17 /Contents/Home
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/373474.html
標籤:沙马林 xamarin.forms 安卓系统 视觉工作室mac
上一篇:Xamarin.iosCLLocationCoordinate.Latitude在越南語言上回傳的不是兩倍
下一篇:如何從多個陣列列中添加一起價格?
