我该如何正确安装Android Studio中支持-V7回购 [英] how do I properly install support-v7 repo in Android Studio

查看:368
本文介绍了我该如何正确安装Android Studio中支持-V7回购的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我的依赖关系是这样的:

Currently my dependencies look like:

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile files('libs/volley_1_0_8.jar')
compile 'com.android.support:support-v4:21.0.2'
compile 'com.android.support:support-v7:21.0.2'
compile files('libs/volley.jar')
compile files('libs/picasso-2.4.0.jar')
}

这给了我以下错误:

Which gives me the following error:

  Error:Failed to find: com.android.support:support-v4:21.0.2
  Install Repository and sync project
  Open File
  Open in Project Structure dialog

它看起来像我所需要的SDK内的一切:

It looks like I have everything needed inside the SDK:

点击安装库和同步工程提示我安装支持回购第9版(我已经有了,根据SDK经理吗?)
安装时我总是得到错误

Clicking on "Install Repository and sync project" prompts me to install the support repo rev 9 (which I already have, according to the SDK manager?) While installing I always get the error

 Failed to rename directory C:\Program Files (x86)\Android\android-studio\sdk\extras\android\m2repository to C:\Program Files (x86)\Android\android-studio\sdk\temp\ExtraPackage.old01.

看来目录是由Android本身工作室使用。

It seems the directory is in use by Android Studio itself.

的问题:我怎么能安装V7支持

The question: how can I install the v7 support?

推荐答案

支持-V4的当前版本为 21.0.0 。还有如支持-V7 没有这样的库 - 如果你的意思是应用程序兼容性-V7 ,那么这也是 21.0.0 按照 gradleplease.appspot.com ,这是一个各种库的最新版本方便的参考。

The current version of the support-v4 is 21.0.0. There is no such library as support-v7 - if you mean appcompat-v7, then that is also 21.0.0 as per gradleplease.appspot.com, which is a handy reference for the latest versions of various libraries.

在SDK经理具有21.0.2版本的原因是因为支持库(具体而言,在自21.0.0版的初始版本multidex支持库)被改变,但这并没有改变支持-V4或其他部件。

The reason the SDK Manager has the version at 21.0.2 is because other parts of the support library (specifically, the Multidex support library) was changed since the initial release of version 21.0.0, but that did not change the support-v4 or other parts.

这篇关于我该如何正确安装Android Studio中支持-V7回购的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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