无法解析:com.android.support:appcompat-v7:22.2.1 [英] Failed to resolve: com.android.support:appcompat-v7:22.2.1

查看:1934
本文介绍了无法解析:com.android.support:appcompat-v7:22.2.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我导入Eclipse项目的AS,发生错误:

when I import an eclipse project to the AS,an error occurred:

E:\studioWorkspace\YTHDBL\yTHDBL\build.gradle
Error:Error:line (25)Failed to resolve: com.android.support:appcompat-v7:22.2.1
Install Repository and sync project
Show in File
open.dependency.in.project.structure
Show in Project Structure dialog</a>
Error:Error:line (24)Failed to resolve: com.android.support:support-v4:22.2.1   
Install Repository and sync project
Show in File
open.dependency.in.project.structure
Show in Project Structure dialog

我寻找答案,发现这一点:<一href=\"http://stackoverflow.com/questions/27048859/how-do-i-properly-install-support-v7-repo-in-android-studio\">how我正确安装support_v7

难道我设置了错误的支持库号码?,我试过22.0.0,22.2.0 .....,但没有奏效。

Did I set the wrong support library number?,I tried 22.0.0,22.2.0.....,but not worked.

在我的SDK管理器中,Android的支持库安装,返16,和Android支持库已经安装,逆转22.2.1。
谷歌储存库安装了。

In my sdk manager ,the Android support Repository was installed,reversion 16,and the Android Support Library was already installed,reversion 22.2.1. The google Repository was installed too.

这是我的build.gradle:

and this is my build.gradle:

 dependencies {
    compile project(':library')
    compile project(':alipay_lib')
    compile project(':sMSSDK')
    compile 'com.android.support:support-v4:22.2.1'
    compile 'com.android.support:appcompat-v7:22.2.1'
    compile files('libs/alipay.jar')
    compile files('libs/android-query.0.25.10.jar')
    compile files('libs/baidumapapi_v3_1_0.jar')
    compile files('libs/commons-codec-1.6.jar')
    compile files('libs/jackson-core-asl-1.9.11.jar')
    compile files('libs/jackson-mapper-asl-1.9.11.jar')
    compile files('libs/jpush-sdk-release1.7.5.jar')
    compile files('libs/locSDK_4.2.jar')
    compile files('libs/umeng-analytics-v5.5.3.jar')
    compile files('libs/zxing.jar')
}

在哪里的问题呢?现在我无法找到的重试按钮,我该怎么再试一次?

where are the problems? and now I can't find the "try again" button in AS,how can I try again?

推荐答案

我睁开android_sdk然后更新我的Andr​​oid支持库,Android的支持库和谷歌储存库,所以在我的IntelliJ问题得到解决。

I opened my android_sdk then updated my Android Support Repository, Android Support Library and Google Repository, so the problem in my Intellij is resolved.

这篇关于无法解析:com.android.support:appcompat-v7:22.2.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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