Mac下Visual Studio Code中配置.NET 9 MAUI Android项目时SDK组件缺失问题求助
各位大佬好,我最近在Mac上用Visual Studio Code搞.NET 9 MAUI项目——主要是从.NET 8迁移到9的过程实在太折腾,索性直接从零新建了项目。目前iOS端已经花了好几个小时调试,终于能正常跑起来了,.NET MAUI相关组件也都装好了。
现在卡在Android端了:我已经下载了Android Studio,还创建了Pixel 7A的虚拟机,但一运行项目就弹出两个报错提示:
Debugging can fail: Android SDK required components need to be installed.
Android SDK missing components. Ensure that all required parts of the Android SDK are installed and up to date. Click to select a valid SDK from your machine. View output for more information. If you are sharing the Android SDK location with Android Studio, the recommended way to install/update the SDK and accept licenses is by using Android Studio.
我尝试点击提示里的“Select”按钮,选择了Android Studio默认的SDK路径;另外也按照微软官方文档的要求安装了Microsoft Build of OpenJDK,但问题还是没解决。
更新:我后来又安装了最新版本的SDK,并且在安装过程中已经接受了许可证协议,但报错依旧存在。
有没有遇到过类似问题的朋友,或者懂行的大佬能指点一下怎么解决这个问题呀?
内容来源于stack exchange




