无法从 Eclipse、ADT 22.6 创建或编辑 Android 虚拟设备 (AVD) [英] Cannot create or edit Android Virtual Devices (AVD) from Eclipse, ADT 22.6

查看:27
本文介绍了无法从 Eclipse、ADT 22.6 创建或编辑 Android 虚拟设备 (AVD)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题听起来类似于 下载并安装新的 ADT v22.6.1 或使用 SDK 管理器更新

似乎是 Google 方面的一些错误,此问题是在 ADT 22.6" 更新后发现的.广泛报道Android 开源项目 - 问题跟踪器",但尚未有人正确回答.

但是,我通过从 Android SDK" 打开 AVD manager.exe" 创建新的 AVD 尝试直接打开 AVD 管理器,从而部分成功地创建了 AVD.SDK文件夹中的exe.

也许我们必须等待 Android 社​​区的任何确认

为我工作,有点......

(Windows 8.1 Pro 64 位、Java JDK 1.7 Update 25、Eclipse Standard Kepler Service Release 1、Android 开发工具包 22.6.0.v201403010043-1049357)

更新 1

进一步的研究表明,从 SDK Manager(工具 --> 管理 AVD...) 启动 AVD Manager 也可以正常工作.

更新 2

更坏的消息是,命令行工具也无法创建 AVD.

更新 3

假设在从 Eclipse 启动 AVD manager 期间传递的某些参数会导致这些问题

更新 4

Java 更新为 JDK 1.7 Update 51 并将 Eclipse 标准 SDK 更新为 Kepler Service Release 2没有解决问题.也在 Debian 下进行了测试,获得了相同的结果.

更新 5

https://code.google.com/p/android/issues/detail?id=66661 android 项目成员符合这些问题,并承诺在即将推出的 ADT 版本 (22.6.1 - 22.6.3) 中修复.同时,我建议将 ADT 回滚到较低版本 <强>版本 22.3.0

要卸载当前的 ADT,请转到

帮助 --> 关于 Eclipse --> 安装详情 --> Android 开发工具 --> 卸载

我可能建议从 Android (DDMS、Hierarchy Viewer、NDT、Traceview、OpenGL ES 等)卸载整个软件包以避免任何可能的兼容性问题并从上面安装全新的 ADT通过归档安装方法链接.

希望这能暂时解决这个问题.并等待 ADT 的新版本这里.

更新 6

新的ADT版本22.6.1现已发布,将解决这些问题

This problem sounds similar to a few others, except in my case the OK button is not grey-ed out. But for those who would rather not click the links...

Trying to create or edit an AVD from within Eclipse, after entering my settings, the "OK" button seems to be "clickable", but when I click it absolutely nothing happens.

I've made sure I have the appropriate system images installed, and that the target platform matches the API being used. Clearly a CPU has been chosen, skin set, etc... all the things that would make the OK button greyed out, which it's not.

I can create/edit AVDs if I run the AVD manager from outside eclipse, so this isn't the end of the world, but I feel there's a solution to this particular problem and I want to help solve it.

I've tried running eclipse as an administrator (that's what stopped the AVD manager from crashing outside of eclipse). I've tried just waiting around, or clicking multiple times. Looking at the Task Manager, no new processes begin when I click OK, nor does eclipse's CPU or RAM usage increase at all. The "Edit Android Virtual Device" window doesn't even go away.

Any clues?

(Running Indigo with the ADT plugin, btw, not the bundled version, which failed to work in a different way. Java 1.6.0 45. Windows 8, unfortunately. Plenty of RAM etc)

解决方案

THIS IS A POSSIBLE WORKAROUND FOR BUGS IN ADT 22.6.0 ONLY, THESE BUGS SUBSEQUENTLY FIXED IN FOLLOWING BUILDS

Download and install new ADT v22.6.1 from here (zip) or use SDK manager to update

Seems like some bug from Google side, this problem found after "ADT 22.6" update. Widely reported on "Android Open Source Project - Issue Tracker" and nobody properly answered it yet.

However I was partially successful to create an AVD by opening "AVD manager.exe" from "Android SDK" for creating new AVD try to open directly AVD Manager.exe in SDK folder.

May be we have to wait for any conformation from Android community

Worked for me, sort of.. .

(Windows 8.1 Pro 64 Bit, Java JDK 1.7 Update 25, Eclipse Standard Kepler Service Release 1, Android Development Toolkit 22.6.0.v201403010043-1049357)

Update 1

Further research revealed that launching AVD Manager from SDK Manager (Tools --> Manage AVDs...) also works without any problems.

Update 2

More bad news is AVD creation not working from command line tool too.

Update 3

Assuming some parameter passed during launching AVD manager from Eclipse causes these problems

Update 4

Updated Java to JDK 1.7 Update 51 and Eclipse Standard SDK to Kepler Service Release 2 their latest and no resolution to the problems. Also tested under Debian and same results obtained.

Update 5

At https://code.google.com/p/android/issues/detail?id=66661 android project members conforms the problems and promises to fix by upcoming versions of ADT (22.6.1 - 22.6.3). At the mean time I would suggest to roll-back ADT to a lower version version 22.3.0

To uninstall current ADT go to

Help --> About Eclipse --> Installation Details --> Android Development Tools --> Uninstall

I may suggest uninstalling whole packages from Android (DDMS, Hierarchy Viewer, NDT, Traceview, OpenGL ES..etc..) to avoid any possible compatibility issues and install a fresh new ADT from above link through archive installation method.

Hope this will solve this problem temporarily. And wait for new release of ADT here.

Update 6

New ADT, version 22.6.1 is out now which will solve these problems

这篇关于无法从 Eclipse、ADT 22.6 创建或编辑 Android 虚拟设备 (AVD)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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