问题描述
我用8.0创建了一个AVD.当我启动AVD时,它崩溃并给出此错误:
I created an AVD with 8.0. when I'm starting the AVD, it crashes and gives this error:
我试图通过以前的可用答案来解决它,但是它们都没有起作用.我还尝试在系统设置中定义AVD路径,但这也没有用.
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'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!