科尔多瓦找不到AVD [英] Cordova not finding avd

查看:96
本文介绍了科尔多瓦找不到AVD的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

按照说明在

After following the instructions for setting up Cordova for Android development on the Cordova documentation, I encountered this error:

Error: No emulator images (avds) found.
1. Download desired System Image by running: /Users/Jacob/Library/Android/sdk/tools/android sdk
2. Create an AVD by running: /Users/Jacob/Library/Android/sdk/tools/android avd
HINT: For a faster emulator, use an Intel System Image and install the HAXM device driver

我发现的所有其他帖子都只说过 add ,但是我已经做到了.在Android Studio中,我实际上制作了三个!

Every other post I found only said to add an emulator, but I have already done that. In Android Studio, I have in fact made three!

值得一提的是,科尔多瓦曾经用于能够运行模拟器,但是在尝试解决另一个问题时,我遇到了这个问题.我确实遇到了权限问题,现在每次运行Cordova命令时都必须使用 sudo .可以和它有任何关系吗?

It is also worth mentioning that Cordova used to be able to run the emulator, but in attempting to fix another problem, I ran into this one. I did run into a problem with permissions, and now have to use sudo every time I run a Cordova command. Could that have anything to do with it?

这是我的.bash_profile:

Here is my .bash_profile:

ANDROID_HOME=/Users/Jacob/Library/Android/sdk
PATH=${PATH}:/Users/Jacob/Library/Android/sdk/platform-tools:/Users/Jacob/Library/Android/sdk/tools
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home

我一直试图在Cordova中将Android API级别23与Android 5.1.1结合使用.

I have been trying to use the Android API level 23 with Android 5.1.1 in Cordova.

尝试了所有我能想到的东西之后(作为终端新手:p),我没有主意了.我尝试使用所有软件包,node.js(也许不完全清除日志文件/缓存)和Cordova重新安装Android SDK,但无济于事.我有什么特别需要重新安装的问题,这样如果不做过多修复,问题就可能消失了?

After trying everything I could think of (as a Terminal newbie :p), I'm out of ideas. I have tried reinstalling the Android SDK with all the packages, node.js (perhaps not entirely cleaning log files/caches), and Cordova, but to no avail. Is there anything in particular I could just reinstall so that the problem would probably disappear without much fixing?

谢谢!

推荐答案

我有一个类似的问题,并且找到了解决之道.

I have a similar issue and have found one way around it.

尝试打开您的Android SDK管理器>工具>管理SDK ...

Try opening your Android SDK manager > tools > Manage SDKs...

选择一个AVD,然后单击开始.一旦启动,请尝试注释 cordova run android (如有必要,请使用sudo),它应可在正在运行的模拟器上运行.

Select an AVD and click start. Once booted, try the comment cordova run android (with sudo if necessary) and it should work on the running emulator.

调试时,我发现插入实际设备要好得多-体验更加流畅,并且您对应用程序的实际外观和运行情况有了更好的感觉,而在SDK仿真器上,科尔多瓦经常运行相当慢.

When debugging, I find it much better to plug in an actual device - the experience is much smoother and you get better feel for what the app actually looks and runs like on a real device, whereas on the SDK emulator Cordova often runs quite slowly.

您可以在此处找到说明.

这篇关于科尔多瓦找不到AVD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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