可以为AVD .ini文件找到Android SDK安装目录
I am getting this error when trying to create a new AVD:
This is the idea log file:
2022-04-05 14:01:12,132 [207201] WARN -VDMANAGER.VDMANAGER.AVDMANAGERECORCONNECTION -COM.ANDROID.PREFS.ANDROIDLLATOCESEXCEPTION:无法定位Android SDK安装目录
我的环境变量如下:
android_avd_home = e:\ androidstudiosdk
android_sdk_home = e:\ androidstudiosdk
android_sdk_root = e:\ androidstudiosdk
I don´t know which .ini file is looking for.
These are the SDK platforms installed:
This is what I have in SDK Tools:
I tried uninstalling and installing Android studio again with no different results.
如何解决此错误?
顺便说一句:我没有运行任何项目,我只想创建虚拟设备。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我收到相同的警报,因为设置错误环境变量,将 ANDROID_SDK_HOME 设置为 .android 目录可能有用,这些是我的环境变量:
I get same alert because set error environment variables, setting ANDROID_SDK_HOME to the .android directory may be useful, these are my environment variables:
这里有一些“如果”和“但是”。如果您卸载了旧版本的 android studio 并且接受的解决方案不起作用,则这适用;尝试删除 $HOME\AppData\Local\Google\AndroidStudio20XX.X
除了最新的之外的所有内容都可以删除。
There are some of if's and but's here. This applies if you have uninstalled an old version of android studio and the accepted solution doesn't work; try deleting $HOME\AppData\Local\Google\AndroidStudio20XX.X
All but the latest could be deleted.
我通过删除与 Android Studio SDK 工具的
plat-form-tools
相关的路径解决了这个问题,问题就解决了。因此,如果您遇到此问题,您还可以尝试从
环境变量
中删除所有添加的与SDK文件夹相关的路径。I resolved this issue just by deleting the path related to
plat-form-tools
of my Android Studio SDK tools and the issue was resolved.So if you have faced this issue, you can also try to remove all paths added related to the SDK folder from
Environment Variables
.z.houbin 答案有效,谢谢,我添加了这些环境变量:
z.houbin answer works, thanks, I have added these environment variables: