如何对日食和Android工作室单一Android SDK和AVD [英] How to have single android SDK and AVD for eclipse and android studio

查看:157
本文介绍了如何对日食和Android工作室单一Android SDK和AVD的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我Eclipse用户轻松地在其上开发的Andr​​oid应用程序。但最近,当我看到Android的工作室来了,由Android网站,我认为是给它一个镜头,因为它看起来非常有前途提供。我在D盘下载android的工作室,而我的previous SDK和日食安装在C盘C:\\ NV_ANDROIDPACK \\ Android的SDK-WINDOWS \\平台(我使用的Tegra Nividea为全包在过去)..

I am Eclipse user and developed android application easily on it. But recently when i saw android studio came and offered by android website i thought to give it a shot since it looks very promising. I have downloaded the android studio in my D drive while my previous SDKS and eclipse is installed in C drive C:\NV_ANDROIDPACK\android-sdk-windows\platforms ( I have used Nividea tegra for whole package in past)..

现在的问题是,Android的工作室默认情况下,在D盘下载Android SDK中4.2.3,而我的其他previous的SDK是在C盘C:\\ NV_ANDROIDPACK \\ Android的SDK-WINDOWS \\平台。

Now the problem is the android studio has downloaded android SDK 4.2.3 by default in D drive while my other previous sdks are in C drive C:\NV_ANDROIDPACK\android-sdk-windows\platforms.

现在我试图用SDK和设备的我的previous列表运行Android工作室。为了验证这一点,我已经从Android工作室以及模块改变项目结构并指向C:\\ NV_ANDROIDPACK \\ Android的SDK窗口。现在AVD管理器和SDK管理器配置不错,我可以看到我安装的SDK列表,并可以创建虚拟设备。

Now i am trying to run android studio with my previous list of sdks and devices. To test this i have changed the project structure from the Android studio as well as modules and directed to the C:\NV_ANDROIDPACK\android-sdk-windows. Now the AVD manager and SDK manager are configured fine and i can see my installed sdk list and can create virtual devices.

但是,当我运行这个它给我的错误无法加载AVD列表错误解析C:\\ NV_ANDROIDPACK \\ Android的SDK-WINDOWS \\工具\\ lib目录\\ devices.xml。当我打开XML文件为新的SDK,我发现了一些新的XML标记已被添加,因此可能是这个错误,但不知道如何解决它。

But when i run this it gives me error Cannot load AVD list Error parsing C:\NV_ANDROIDPACK\android-sdk-windows\tools\lib\devices.xml . When i opened the xml file for the newer SDK i found some new xml tags has been added so might be this error but not sure how to solve it.

有没有同时拥有与Android的SDK单一的IDE什么好的办法?

Is there any good way to have both of the IDE with single SDK of android?

推荐答案

这是由于的SDK的Andorid工具,它可以与新的版本更新现有的SDK中的旧版本发生。在此之后,错误不见了,现在能够运行模拟器...

This was happening due to the older version in the existing sdk of the Andorid SDK tools , which can be update with new revisions. After that the error is gone and now able to run the emulator ...

这篇关于如何对日食和Android工作室单一Android SDK和AVD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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