如何为Android 4.4W安装系统映像(API 20)

时间:2014-09-12 17:21:20

标签: java android

我是Android开发的新手。我按照http://developer.android.com/上的设置说明进行操作,因此我下载了Eclipse ADT。尝试创建Android虚拟设备(AVD)时,“确定”按钮被禁用,因为我没有为目标安装系统映像(Android 4.4W - API Level 20)。所以我启动了Android SDK Manager来下载和安装它们,但是我没有看到任何安装它们的选项,也没有看到“Android 4.4W(API20)”下的“android sdk的来源”。这是我的Android SDK Manager的快照:

如何安装适用于Android 4.4W的系统映像(API 20)

enter image description here

修改 正如@ashoke所建议的那样,我安装了独立SDK工具,但它也只显示了这个: enter image description here

启动SDK Manager时,我收到此异常:

[2014-09-13 00:44:05 - SDK Manager] [SDK Manager] Exception in thread "Loading Sources" java.lang.UnsatisfiedLinkError: sun.net.PortConfig.getLower0()I
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at sun.net.PortConfig.getLower0(Native Method)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at sun.net.PortConfig.<clinit>(Unknown Source)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at java.net.SocketPermission$1.run(Unknown Source)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at java.net.SocketPermission$1.run(Unknown Source)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at java.security.AccessController.doPrivileged(Native Method)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at java.net.SocketPermission.initEphemeralPorts(Unknown Source)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at java.net.SocketPermission.<clinit>(Unknown Source)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at sun.security.util.SecurityConstants.<clinit>(Unknown Source)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at java.lang.Class.getProtectionDomain(Unknown Source)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at javax.crypto.JceSecurity$2.run(JceSecurity.java:226)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at java.security.AccessController.doPrivileged(Native Method)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at javax.crypto.JceSecurity.getCodeBase(JceSecurity.java:224)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at javax.crypto.JceSecurityManager.getCryptoPermission(JceSecurityManager.java:107)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at javax.crypto.Cipher.getConfiguredPermission(Cipher.java:2503)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at javax.crypto.Cipher.initCryptoPermission(Cipher.java:685)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at javax.crypto.Cipher.chooseProvider(Cipher.java:848)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at javax.crypto.Cipher.init(Cipher.java:1348)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at sun.security.ssl.CipherBox.<init>(Unknown Source)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at sun.security.ssl.CipherBox.newCipherBox(Unknown Source)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at sun.security.ssl.CipherSuite$BulkCipher.newCipher(Unknown Source)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at sun.security.ssl.CipherSuite$BulkCipher.isAvailable(Unknown Source)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at sun.security.ssl.CipherSuite$BulkCipher.isAvailable(Unknown Source)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at sun.security.ssl.CipherSuite.isAvailable(Unknown Source)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at sun.security.ssl.SSLContextImpl.getApplicableCipherSuiteList(Unknown Source)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at sun.security.ssl.SSLContextImpl.getDefaultCipherSuiteList(Unknown Source)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at sun.security.ssl.SSLSocketImpl.init(Unknown Source)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at sun.security.ssl.SSLSocketImpl.<init>(Unknown Source)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at sun.security.ssl.SSLSocketFactoryImpl.createSocket(Unknown Source)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at org.apache.http.conn.ssl.SSLSocketFactory.createSocket(SSLSocketFactory.java:342)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:136)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:561)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at com.android.sdklib.internal.repository.UrlOpener.openWithHttpClient(UrlOpener.java:404)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at com.android.sdklib.internal.repository.UrlOpener.openUrl(UrlOpener.java:183)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at com.android.sdklib.internal.repository.DownloadCache.openUrl(DownloadCache.java:293)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at com.android.sdklib.internal.repository.DownloadCache.downloadAndCache(DownloadCache.java:676)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at com.android.sdklib.internal.repository.DownloadCache.openCachedUrl(DownloadCache.java:598)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at com.android.sdklib.internal.repository.AddonsListFetcher.fetchXmlUrl(AddonsListFetcher.java:267)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at com.android.sdklib.internal.repository.AddonsListFetcher.fetch(AddonsListFetcher.java:132)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at com.android.sdklib.internal.repository.updater.PackageLoader.loadRemoteAddonsListInTask(PackageLoader.java:460)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at com.android.sdklib.internal.repository.updater.PackageLoader.access$200(PackageLoader.java:47)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at com.android.sdklib.internal.repository.updater.PackageLoader$3.run(PackageLoader.java:430)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at com.android.sdkuilib.internal.tasks.ProgressView$2.run(ProgressView.java:140)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at com.android.sdkuilib.internal.tasks.ProgressView.startTask(ProgressView.java:162)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at com.android.sdkuilib.internal.tasks.ProgressViewFactory.start(ProgressViewFactory.java:46)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at com.android.sdklib.internal.repository.updater.PackageLoader.loadRemoteAddonsList(PackageLoader.java:427)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at com.android.sdklib.internal.repository.updater.PackageLoader$1.run(PackageLoader.java:233)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at com.android.sdkuilib.internal.tasks.ProgressView$2.run(ProgressView.java:130)
[2014-09-13 00:44:05 - SDK Manager] [SDK Manager]   at java.lang.Thread.run(Unknown Source)

2 个答案:

答案 0 :(得分:2)

请检查工具下的设置,看看您是否启用了预览工具。我的Android SDK Manager显示了系统图像的磨损情况,请参见下文(还包括我的设置屏幕截图): Android SDK Manager

如果您在验证设置后仍无法使用,我会下载仅限SDK工具的软件包http://developer.android.com/sdk/index.html并尝试使用该软件包。

同时尝试强制https到选项下的http,以消除执行ssl中的异常。

答案 1 :(得分:0)

您正在代理服务器上运行互联网,因此请在中指定服务器地址和端口地址 Android SDK Manager&gt;工具&gt;代理设置 输入地址 你很高兴......