简体   繁体   English

如何在Android Studio模拟器中修复此错误?

[英]How to fix this error in android studio emulator?

I am currently using android studio 3.4 version.emmulator is not working properly.there is no defect in the code. 我目前正在使用android studio 3.4版本。emmulator无法正常工作。代码中没有缺陷。

I tried a different version of the emulator but it not working properly. 我尝试了不同版本的仿真器,但无法正常工作。

it showing the same error to the emulator. 它向模拟器显示了相同的错误。

I am using ubantu 17.04 version 我正在使用ubantu 17.04版本

9:08 AM Emulator: emulator: ERROR: Unknown AVD name [Nexus_S_API_28], use -list-avds to see valid list. 上午9:08模拟器:模拟器:错误:未知的AVD名称[Nexus_S_API_28],请使用-list-avds查看有效列表。

9:08 AM Emulator: Process finished with exit code 1 9:08 AM仿真器:进程完成,退出代码为1

8:59 AM Gradle build finished in 3 s 928 ms 8:59 AM Gradle构建在3 s 928 ms中完成

9:08 AM Emulator: emulator: ERROR: Unknown AVD name [Nexus_S_API_28], use -list-avds to see valid list. 上午9:08模拟器:模拟器:错误:未知的AVD名称[Nexus_S_API_28],请使用-list-avds查看有效列表。

9:08 AM Emulator: Process finished with exit code 1 9:08 AM仿真器:进程完成,退出代码为1

Try creating a new Android Virtual Device and switch to that new device. 尝试创建新的Android虚拟设备并切换到该新设备。

Go to Tools > AVD manager. 转到工具> AVD管理器。

Click Create Virtual Device. 单击创建虚拟设备。

Choose this new AVD when running. 运行时选择此新的AVD。

Try creating a new Android Virtual Device and delete old ones. 尝试创建新的Android虚拟设备并删除旧的虚拟设备。

Go to Tools > AVD manager. 转到工具> AVD管理器。

Click Create Virtual Device. 单击创建虚拟设备。

Choose option create new AVD and while selecting the System image please select Google Play image Platform. 选择选项创建新的AVD,然后在选择系统映像时,选择Google Play映像平台。 select device Pixel (5.0) and then google image. 选择设备Pixel(5.0),然后选择Google图片。

Try this : 尝试这个 :

Go to Tools > Android > Uncheck Enable ADB Integration 转到工具> Android>取消选中启用ADB集成

then, 然后,

Tools > Android > Check Enable ADB Integration 工具> Android>选中启用ADB集成

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM