如何解决'仿真器:PANIC:找不到AVD系统路径.请定义ANDROID_SDK_ROOT' [英] How to resolve 'Emulator: PANIC: Cannot find AVD system path. Please define ANDROID_SDK_ROOT'

查看:383
本文介绍了如何解决'仿真器:PANIC:找不到AVD系统路径.请定义ANDROID_SDK_ROOT'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用8.0创建了一个AVD.当我启动AVD时,它崩溃并给出此错误:

I created an AVD with 8.0. when I'm starting the AVD, it crashes and gives this error:

仿真器:PANIC:找不到AVD系统路径.请定义ANDROID_SDK_ROOT

Emulator: PANIC: Cannot find AVD system path. Please define ANDROID_SDK_ROOT

我试图通过以前的可用答案来解决它

I tried to resolve it by a previous answers available here, but none of them are working. I also tried defining AVD path in system settings, but that also didn't worked.

我正在将Android Studio 3.0和系统映像用于AVD 8.0(Oreo)(API级别26).

I'm using Android Studio 3.0 and system image for AVD 8.0 (Oreo)(API level 26).

推荐答案

我解决了这样的问题...

I solved my issue like this...

转到"我的电脑"->"属性"->"高级系统设置"->"环境变量'->在系统变量"中添加" ANDROID_SDK_ROOT "或" ANDROID_HOME ",并在其中设置AVD的路径.

Go to 'My Computer'-> 'Properties' ->'Advance System Settings' -> 'Environment Variables' -> inside 'System Variables' add "ANDROID_SDK_ROOT" or "ANDROID_HOME" and inside this set the path of your AVD.

之后,重新启动您的计算机.您必须重新启动计算机,否则它将无法正常工作.

After that Restart your Computer. You must Restart your computer, otherwise it won't work.

此方法对我有用,在其他情况下情况可能有所不同. 在此处中查找更多信息.

This method worked for me, situations may be different in other cases. Look here for more information.

这篇关于如何解决'仿真器:PANIC:找不到AVD系统路径.请定义ANDROID_SDK_ROOT'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆