Android Studio 2.2.2:所有包都无法下载 [英] Android Studio 2.2.2: All packages are not available for download

查看:21
本文介绍了Android Studio 2.2.2:所有包都无法下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的系统上安装了 Android Studio 2.2.2.当我打开一个具有 compileSdkVersion 23 的项目后,出现以下错误,

<块引用>

<代码>>错误:无法在以下位置找到带有哈希字符串android-22"的目标:>href="install.android.platform">安装缺少的平台并同步>项目</a>

我知道这个错误意味着我需要下载 sdk 包,但我不能这样做.同样在我的 SDK 管理器中,我没有看到要安装的所有 API

解决方案

我也遇到了同样的问题.对我来说,它通过设置代理设置来解决.

Android Studio > 文件 > 设置 > 外观和行为> 系统设置 > HTTP 代理

我建议检查是否需要任何代理才能为您的 android 工作室启用互联网.希望这会对某人有所帮助.

I installed Android Studio 2.2.2 on my system. After when I openend one of the projects which have compileSdkVersion 23, got following error,

>  Error:Failed to find target with hash string 'android-22' in:
> href="install.android.platform">Install missing platform(s) and sync
> project</a>

I know this error means I need to download sdk packages but I'm not able to do so. Also in my SDK Manager I don't see all APIs to install

解决方案

I was facing the same issue. For me, it got resolved by setting proxy settings.

Android Studio > File > Settings >appearance and behavior> System Settings > HTTP Proxy

I would suggest checking any proxy is required to enable internet for your android studio. Hope this will help somebody.

这篇关于Android Studio 2.2.2:所有包都无法下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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