0
错误:配置项目':app'时发生问题。Android studio构建失败 - 找不到支持-v4.jar
Could not find support-v4.jar (com.android.support:support-v4:24.0.0). Searched in the following locations: https://jcenter.bintray.com/com/android/support/support-v4/24.0.0/support-v4-24.0.0.jar
,但我没有使用24.0.0版本 检查gradle这个:
apply plugin: 'com.android.application'
android {
compileSdkVersion 14
buildToolsVersion '19.1.0'
defaultConfig {
applicationId "com.XXX.app"
minSdkVersion 14
targetSdkVersion 19
versionCode 2
versionName "2.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.txt'
}
} }
dependencies {
provided fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.android.gms:play-services:+'
compile 'com.actionbarsherlock:actionbarsherlock:[email protected]'
compile project(':actionbarsherlock')
compile 'com.google.android.gms:play-services-ads:8.4.0'
compile 'com.android.support:support-v4:23+' }
** compile'com.android.support:support-v4:23+'** Gradle会自动寻找23以上版本的支持库。或者使用像23.0.2这样的fullversion名称(只是一个例子)来包含特定的支持库版本 –
**编译'com.android.support:support-v4:24.2.1'**试试这个 –
匹配构建工具和支持Lib版本。 –