java Android 模拟器未在 netbeans 上加载

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1473185/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-29 16:40:34  来源:igfitidea点击:

Android Emulator not loading on netbeans

javaandroidnetbeans

提问by Drahcir

I just downloaded the androidsdk from the adnroid site and followed thistutorial to set it up on netbeans. Everything to seem to have installed fine but whenever i try to run the application this window pops up:

我刚刚从 adnroid 站点下载了androidsdk,并按照教程在 netbeans 上进行了设置。一切似乎都安装得很好,但是每当我尝试运行该应用程序时,都会弹出此窗口:

alt text http://img80.imageshack.us/img80/4327/androidemulator.png

替代文字 http://img80.imageshack.us/img80/4327/androidemulator.png

What I am assuming it asking me to choose the emulator, but it is not showing up on the list. Is there a reason why?

我假设它要求我选择模拟器,但它没有出现在列表中。有什么原因吗?

回答by broschb

I don't use netbeans, but it looks like you don't have any AVD's created, and if you do, then there is probably a way to associate them that you are missing in netbeans. You can check here to create an AVD http://developer.android.com/guide/developing/tools/avd.html

我不使用 netbeans,但看起来您没有创建任何 AVD,如果您创建了,那么可能有一种方法可以将它们关联到您在 netbeans 中缺少的内容。您可以在此处查看以创建 AVD http://developer.android.com/guide/developing/tools/avd.html

But I would just use eclipse if possible, the integration works really well, and it was written to run in eclipse, so there are less issues and hurdles.

但如果可能的话,我只会使用 eclipse,集成效果非常好,而且它是为在 eclipse 中运行而编写的,因此问题和障碍较少。

Also see Running Your Application section of http://developer.android.com/guide/developing/other-ide.htmlthat will describe how to launch the app from the tools outside of the IDE.

另请参阅http://developer.android.com/guide/developing/other-ide.html 的运行您的应用程序部分, 该部分将描述如何从 IDE 外部的工具启动应用程序。

回答by Djayz

I have the same problem with you. But i have my emulator works now. Are you have to do is running your Android SDK Manager, then click Virtual devices, and Make new AVD device. Click New. Then fill name, and select Target (Platform of your Android), Skin, and hardware. Then click Create AVD to finish.

我和你有同样的问题。但是我的模拟器现在可以工作了。您需要做的是运行您的 Android SDK 管理器,然后单击虚拟设备,并创建新的 AVD 设备。单击新建。然后填写名称,并选择目标(Android 平台)、皮肤和硬件。然后单击创建 AVD 完成。

Now you have device to choose. :)

现在您可以选择设备了。:)

回答by JOSE ALCIDES

go in C:\Program Files\Android\android-sdk\SDK Manager.exeand create the virtual device. After it appear in device list. Thats it.

进入C:\Program Files\Android\android-sdk\SDK Manager.exe并创建虚拟设备。在它出现在设备列表中之后。而已。

回答by cinnat

Open Sdk manager

打开 SDK 管理器

Tool Manage AVD

工具管理 AVD

Select and start AVD. wait open.

选择并启动 AVD。等待打开。

Goto netbean Run project.

转到 netbean Run 项目。

U must see project run in AVD.

你必须看到在 AVD 中运行的项目。

Success..

成功..

回答by Misgevolution

run the avd manager which is location in the android-sdk folder and then create a new avd,but be sure you have already downloaded ARM EABI system image tool set.

运行位于 android-sdk 文件夹中的 avd 管理器,然后创建一个新的 avd,但请确保您已经下载了 ARM EABI 系统映像工具集。

回答by Gicanu

The articleat the link @broschb had posted is explaining how to create an AVD using command line. Do exactly what is says there (it's very easy). Once you have created the AVD it will appear in the AVD list in Netbeans. Actually, if you have only one AVD it will start by default when you run your app.

@broschb 发布的链接中的文章解释了如何使用命令行创建 AVD。完全按照那里说的去做(这很容易)。创建 AVD 后,它将出现在 Netbeans 的 AVD 列表中。实际上,如果您只有一个 AVD,它会在您运行应用程序时默认启动。

回答by Namit Rana

Just create avd (android virtual device) and run it.. like android -avd "name of your avd"

只需创建avd(android虚拟设备)并运行它......就像android -avd“你的avd的名称”

Then try to run your application.

然后尝试运行您的应用程序。

It will ask you to select the virtual device that you have started above. Thats it.

它将要求您选择上面已启动的虚拟设备。而已。