[英]Cannot launch AVD in emulator. ?android studio
my emulator is not runnnig and gives the error in image below 我的模拟器不是runnnig,并在下面的图像中给出错误
and test at run window 并在运行窗口测试
C:\\Users\\Wahlah\\AppData\\Local\\Android\\sdk\\tools\\emulator.exe -netdelay gprs -netspeed full -avd Nexus_4_API_21 This application has requested the Runtime to terminate it in an unusual way.
C:\\ Users \\ Wahlah \\ AppData \\ Local \\ Android \\ sdk \\ tools \\ emulator.exe -netdelay gprs -netspeed full -avd Nexus_4_API_21此应用程序已请求Runtime以不寻常的方式终止它。 Please contact the application's support team for more information.
有关更多信息,请联系应用程序的支持团队。 terminate called after throwing an instance of 'std::logic_error' what(): basic_string::_S_construct null not valid
抛出'std :: logic_error'的实例后调用what():basic_string :: _ S_construct null无效
and second error exist is this image 存在的第二个错误是此图像
I got the same problem with the same logged warnings and errors (and the alert as well). 我遇到了同样的问题,同样的记录警告和错误(以及警报)。
Although from the first logged line ( C:\\...emulator.exe
) it looked like the tools did find the emulator - my problem was resolved only after I followed this answer , and changed the ANDROID_SDK_ROOT
environment variable (which pointed to a folder above the sdk instead to the sdk's folder itself). 虽然从第一个记录的行(
C:\\...emulator.exe
)看起来工具确实找到了模拟器 - 我的问题只有在我按照这个答案后才解决 ,并更改了ANDROID_SDK_ROOT
环境变量(指向一个文件夹)在sdk上面而不是sdk的文件夹本身)。
So I changed it from 所以我改变了它
C:\Users\<username>\AppData\Local\Android
to 至
C:\Users\<username>\AppData\Local\Android\sdk
and... voila! 并且......瞧! The emulator is running properly.
模拟器正常运行。
I should note that I'm working on Windows and from the question it looks like AIR TRAVELS was as well. 我应该注意到我正在使用Windows,从问题看起来它也像AIR TRAVELS一样。
I had the same problem and fixed it by selecting Cold Boot from the Tools > Android > AVD Manager > Edit > Show Advanced > Boot option from Quick Boot to Cold Boot. 我遇到了同样的问题并通过从工具> Android> AVD管理器>编辑>显示高级>引导选项从快速启动到冷启动选择冷启动来修复它。 Hope this helps.
希望这可以帮助。
You can fix this error, need configure the device again. 您可以修复此错误,需要再次配置设备。 Download all the necessary libraries through the SDK manager.
通过SDK管理器下载所有必需的库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.