gpt4 book ai didi

Android Studio : Gradle Sync fail with support-v4-24. 1.1.jar

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:56:35 25 4
gpt4 key购买 nike

我遇到了 gradle 问题。 这是 gradle 消息中的以下问题,同时在 gradle 中进行同步我们的 Android Studio 版本是 2.1.2

Error:A problem occurred configuring project ':LetMeCall_Store'. Could not find support-v4.jar (com.android.support:support-v4:24.1.1). Searched in the following locations: https://jcenter.bintray.com/com/android/support/support-v4/24.1.1/support-v4-24.1.1.jar

下面是gradle文件

apply plugin: 'com.android.application'

android {
compileSdkVersion 24
buildToolsVersion "24.0.1"

defaultConfig {
applicationId "com.app.letmecall.store"
minSdkVersion 15
targetSdkVersion 24
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'

compile 'com.android.support:appcompat-v7:24.1.1'
compile 'com.android.support:design:24.0.0-beta1'
compile 'com.android.support:support-v4:24.0.0-beta1'
compile 'com.android.support:recyclerview-v7:24.1.1'
compile 'com.android.support:cardview-v7:24.0.0-beta1'
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
compile 'com.loopj.android:android-async-http:1.4.6'
compile 'com.daimajia.androidanimations:library:1.0.3@aar'
compile "com.google.android.gms:play-services:8.3.0"
compile 'com.mcxiaoke.volley:library-aar:1.0.0'
compile 'com.android.support:multidex:1.0.0'
}

请任何人帮助我们解决这个问题提前致谢

最佳答案

我升级了我所有的 Android SDK 工具(包括“Support Repository”),但是,我仍然遇到错误

Gradle sync failed: Could not find recyclerview-v7.jar (com.android.support:recyclerview-v7:24.1.1)

然后我做了以下事情:

  1. targetSdk 24(原为 23)
  2. buildToolsVersion:“24.0.3”(原为 24.0.0)
  3. 删除了 /.gradle/caches 中的文件夹我有 windows,完整路径是 C:\Users\USERNAME\.gradle\caches

THEN 项目构建无误!!

关于Android Studio : Gradle Sync fail with support-v4-24. 1.1.jar,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39784246/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com