如何有单一的android SDK和AVD为eclipse和android工作室 [英] How to have single android SDK and AVD for eclipse and android studio
问题描述
现在的问题是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屋!