Android的工作室:无法找到:“com.android.support:support-v4:19.1.0” [英] Android Studio: Failed to find: 'com.android.support:support-v4:19.1.0'

查看:1156
本文介绍了Android的工作室:无法找到:“com.android.support:support-v4:19.1.0”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想建立在Android的Studio中的应用程序的支持库,但我添加依赖的支持库时收到以下错误:

I want to build an app in Android Studio with the support library but I get the following error when adding the dependency for the support library:

Error:Failed to find: com.android.support:support-v4:19.1.0

下面是我的build.gradle文件

Here is my build.gradle file

apply plugin: 'com.android.application'

android {
    compileSdkVersion 19
    buildToolsVersion '20'

    defaultConfig {
        applicationId "sample.myapplication"
        minSdkVersion 15
        targetSdkVersion 19
        versionCode 1
        versionName "1.0"
    }
    buildTypes {

        release {
            runProguard false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:support-v4:19.1.0'

}

我已经通过SDK管理器下载的支持库。

I have downloaded the support library via the sdk manager.

推荐答案

好了,发现了问题。 Android的支持库失踪。安装并重新启动Android的工作室后,它的工作。

Ok, found the problem. The Android support repository was missing. After installing and restarting Android Studio it worked.

这篇关于Android的工作室:无法找到:“com.android.support:support-v4:19.1.0”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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