运行"app"时出错:未找到目标设备. Android Studio 3.6预览版 [英] Error running 'app: No target device found. Android Studio 3.6 Preview

查看:657
本文介绍了运行"app"时出错:未找到目标设备. Android Studio 3.6预览版的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个初学者,无法在Android Studio 3.6上运行我的第一个Android应用程序.如何进行正确的设置以在模拟器中查看预览设备?

Aa beginner, failed to run my first Android Application on Android Studio 3.6. How can I make the right setting to see the preview device in the emulator?

我尝试了相同的问题和讨论,但未能解决我的问题.

I tried the same question and discussion, but failed to solve my problem.

推荐答案

这是问题所在:您没有任何虚拟设备.这是您可能必须运行的屏幕快照(在AS 3.6 Preview中):

Here's the problem: You don't have any virtual devices. Here's a screenshot of what you probably should have to run (In AS 3.6 Preview):

将此内容与显示没有设备"的图片进行比较.因此,我将指导您完成创建AVD.

Compare this to your picture where it says "No devices". So, I'm going to walk you through creating an AVD.

现在,由于我有AVD,因此我将创建一个.单击为您显示无设备"的下拉菜单,然后单击打开AVD管理器":

Now, since I do have AVDs, I'm just going to create one. click on that drop-down menu that for you says "No devices" and click "Open AVD Manager":

在弹出窗口中,单击创建虚拟设备..."

In the popup click "Create Virtual Device..."

在虚拟设备"配置弹出窗口中,选择所需的设备,然后单击下一步".

In the Virtual Device configuration popup select the device you want and click "Next".

选择所需的系统映像(您可以转到其他选项卡以查看其中的内容),然后单击下一步"

Choose the system image you want (you can go to the other tabs to see what's there) and click "Next"

然后命名您的AVD,然后单击完成"

Then name your AVD and click "Finish"

现在您应该看到新的Android虚拟设备:

Now you should see your new Android Virtual Device:

结束之后,您现在可以使用绿色的运行"箭头运行应用程序!

Closing out of it, you can now run your application with the green "Run" arrow!

我希望这对您有帮助!

这篇关于运行"app"时出错:未找到目标设备. Android Studio 3.6预览版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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