我开始使用Gradle。当我将此代码添加到build.gradle;
时compile 'com.android.support:appcompat-v7:+'
我收到此错误:
"Dependency 'com.android.support:appcompat-v7:+' Not Found"
那么,我如何为项目添加appcompat支持?
我的build.gradle文件:
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.0"
defaultConfig {
applicationId "my.project.package"
minSdkVersion 9
targetSdkVersion 21
versionCode 3
versionName "1.27"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile 'com.android.support:appcompat-v7:+'
compile fileTree(dir: 'libs', include: ['*.jar'])
compile files('libs/jsoup-1.8.3.jar')
}