【发布时间】:2014-08-27 18:24:47
【问题描述】:
我想在 Android Studio 中使用支持库构建应用,但在添加支持库的依赖项时出现以下错误:
Error:Failed to find: com.android.support:support-v4:19.1.0
这是我的 build.gradle 文件
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 manager 下载了支持库。
【问题讨论】:
标签: android gradle android-studio android-support-library android-gradle-plugin