为Android 4.0.3创建AVD [英] Creating AVD for android 4.0.3

查看:93
本文介绍了为Android 4.0.3创建AVD的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为Android 4.0.3安装了软件包,但无法为其创建AVD,因为它显示该软件包未安装系统映像,并且没有获得api级别15的ARM EABI v7a系统映像. 我为Android 4.4(19)安装了系统映像.以下是sdk管理器和avd管理器的屏幕截图.

I installed packages for Android 4.0.3 but I can't create AVD for it because it is showing No system image installed for this package and I am not getting ARM EABI v7a System Image for api level 15. I have System image installed for Android 4.4(19). Here are the screen shots of sdk manager and avd manager.

推荐答案

可能是您的SDK配置错误,并且没有指向所需资源的链接.为了解决这个问题,您可以手动编辑sites-settings.cfg文件,该文件应位于以下位置之一(您需要使隐藏文件/系统文件可见):

It might be that your SDK is incorrectly configured and does not have links to the required resources. To remedy this you can manually edit the sites-settings.cfg file, which should be located in one of these locations (you will need to have hidden/system files visible):

C:\SDK\.android
C:\Users\[username]\.android

以下是我文件的内容,您可以将其复制/粘贴到您的文件中(首先进行备份):

The following is the contents of my file, which you can just copy/paste into yours (make a backup first):

### Sites Settings for Android SDK Manager
#Fri Jun 27 12:25:33 CAT 2014
@name@https\://dl-ssl.google.com/android/repository/sys-img/x86/sys-img.xml=Android x86 System Images
@name@https\://dl-ssl.google.com/android/repository/addon-6.xml=Google Inc.
@disabled@http\://dl.htcdev.com/sdk/addon.xml=disabled
@name@https\://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml=Android Wear System Images
@name@http\://dl.htcdev.com/sdk/addon.xml=HTC
@name@https\://dl-ssl.google.com/android/repository/repository-8.xml=Android Repository
@name@http\://dl-ssl.google.com/android/repository/addon.xml=Google Inc.
@version@=1
@name@https\://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml=Android System Images
@name@http\://software.intel.com/sites/landingpage/android/addon.xml=Intel Corporation
@disabled@http\://www.mips.com/global/sdk-sys-img.xml=disabled
@name@https\://dl-ssl.google.com/android/repository/sys-img.xml=Android System Images
@name@https\://dl-ssl.google.com/android/repository/extras/intel/addon.xml=Intel HAXM
@name@https\://dl-ssl.google.com/android/repository/repository-7.xml=Android Repository
@name@http\://developer.lgmobile.com/sdk/android/repository.xml=LG Electronics
@disabled@http\://www.echobykyocera.com/download/echo_repository.xml=disabled
@disabled@http\://android-sdk-addons.motodevupdate.com/addons.xml=disabled
@name@http\://download-software.intel.com/sites/landingpage/android/sys-img.xml=Intel Corporation System Images
@disabled@http\://innovator.samsungmobile.com/android/repository/repository.xml=disabled
@name@http\://innovator.samsungmobile.com/android/repository/repository.xml=Samsung Electronics
@name@http\://www.mips.com/global/sdk-sys-img.xml=MIPS Technologies System Images
@name@https\://dl-ssl.google.com/android/repository/sys-img/android-wear/android-wear-sys-img.xml=Experimental Android Wear System Images
@disabled@http\://developer.sonymobile.com/edk/android/repository.xml=disabled
@name@http\://android-sdk-addons.motodevupdate.com/addons.xml=Motorola Mobility, Inc.
@disabled@http\://developer.lgmobile.com/sdk/android/repository.xml=disabled
@name@https\://dl-ssl.google.com/android/repository/sys-img/mips/sys-img.xml=Android MIPS System Images
@name@https\://dl-ssl.google.com/android/repository/repository-9.xml=Android Repository
@name@https\://dl-ssl.google.com/android/repository/repository-10.xml=Android Repository
@name@http\://developer.sonymobile.com/edk/android/repository.xml=Sony Mobile Communications AB
@name@https\://dl-ssl.google.com/android/repository/addon.xml=Google Inc.
@name@https\://dl-ssl.google.com/glass/gdk/addon.xml=Glass Development Kit, Google Inc.
@name@https\://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml=Android TV System Images
@name@http\://no.source=Local Packages
@name@http\://www.echobykyocera.com/download/echo_repository.xml=KYOCERA Corporation
@name@https\://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml=Google Inc. (x86 System Images)

此外,请确保您的防火墙没有阻止SDK管理器.

Also, make sure that your firewall is not blocking the SDK manager.

如果这不能解决您的问题(并且很急),则可以通过以下网址手动下载图像:

If this does not fix your problem (and you are in a hurry), you can download the image manually at the following url:

http://dl-ssl.google.com/android/仓库/sysimg_armv7a-15_r02.zip

下载后,将zip文件的内容提取到C:\SDK\system-images\android-15\(如果不存在则创建文件夹).然后重新启动AVD,它应该会拾取新的系统映像.

After downloading, extract the contents of the zip file to C:\SDK\system-images\android-15\ (create the folders if they don't exist). Then re-launch the AVD and it should pick-up the new system image.

这篇关于为Android 4.0.3创建AVD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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