如何有单一的android SDK和AVD为eclipse和android工作室 [英] How to have single android SDK and AVD for eclipse and android studio

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

问题描述

我是Eclipse用户,并且很容易地开发出android应用程序。但最近,当我看到Android工作室来到Android网站提供的时候,我想给它一个镜头,因为它看起来非常有前途。我已经下载了我的D盘中的Android工作室,而我以前的SDKS和eclipse安装在C盘C:\NV_ANDROIDPACK\android-sdk-windows\platforms(以前我已经使用Nividea tegra整个包)



现在的问题是android studio已经在D盘中默认下载了android SDK 4.2.3,而我以前的其他sdks在C盘C:\NV_ANDROIDPACK\ Android的SDK-windows\platforms。



现在我试图用我以前的sdks和设备列表来运行android studio。为了测试这个,我已经从Android studio以及模块改变了项目结构并定向到C:\NV_ANDROIDPACK\android-sdk-windows。现在,AVD管理器和SDK管理器配置正常,我可以看到我安装的sdk列表,并且可以创建虚拟设备。



但是当我运行它给我错误无法加载AVD列表解析C:\NV_ANDROIDPACK\android-sdk-windows\tools\lib\devices.xml时出错。当我打开新的SDK的xml文件时,我发现一些新的xml标签已被添加,所以可能是这个错误,但不知道如何解决它。



有没有使用IDE的单一SDK的Android的好方法?



解决方案

这是由于Andorid SDK工具的现有sdk中的旧版本而发生的,可以使用新版本进行更新。之后,错误消失,现在可以运行模拟器...


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)..

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.

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.

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.

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

解决方案

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 SDK和AVD为eclipse和android工作室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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