gpt4 book ai didi

java - 如何为 Android 4.4W (API 20) 安装系统镜像

转载 作者:行者123 更新时间:2023-11-30 09:03:02 24 4
gpt4 key购买 nike

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

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

enter image description here

编辑:正如@ashoke 所建议的,我安装了 Stand-alone SDK Tools 但这也仅显示了这一点: enter image description here

启动 SDK 管理器时出现异常:

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

最佳答案

请检查工具下的设置,看看您是否启用了预览工具。我的 Android SDK Manager 显示了 wear 的系统图像,请看下面(也包括我的设置截图): Android SDK Manager

如果您验证设置后仍然无法正常工作,我会下载 SDK 工具包 http://developer.android.com/sdk/index.html并尝试一下。

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

关于java - 如何为 Android 4.4W (API 20) 安装系统镜像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25813579/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com