安装存储库和同步项目

安装存储库和同步项目

本文介绍了无法解析com.android.support:support-v4:[26.0.0,26.1.0)安装存储库和同步项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助我。



Uygulamaöncedençalışıyordu。



Amaşimdiçalışmıyor



这里是gradle sync的错误消息



这是我的应用Gradle配置:

  apply plugin:'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion '25 .0.3'
defaultConfig {
minSdkVersion 16
targetSdkVersion 25
versionCode 1
versionName'1.0'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.txt'
}

存储库{
jcenter()
mavenCentral()// Android的GPUImage
}
dexOptions {
javaMaxHeapSize4g
}
productFlavors {
}
}

依赖关系{
编译fileTree(包括:['* .jar'],dir: 'libs')
编译文件('libs / acra-4.5.0.jar')
编译文件('libs / ormlite-android-4.43.jar')
编译文件(' ('libs / mysql-connector-java-3.0.17-ga-bin.jar')
androidTestCompile('com.android.support .test.espresso:espresso-
core:2.2.2',{
exclude group:'com.android.support',module:'support-annotations'
})
//如果你想使用GPU滤镜
compile'c​​om.android.support:appcompat-v7:25.3.1'
compile'c​​om.android.support:design:25.3.1'
编译'com.android.support:cardview-v7:25.3.1 '
compile'c​​om.android.support:customtabs:25.3.1'
testCompile'junit:junit:4.12'
compile'c​​om.onesignal:OneSignal:[3.5.3,4.0。 0)'
compile'c​​om.google.firebase:firebase-ads:10.0.0'
compile'c​​om.google.firebase:firebase-messaging:10.0.0'
compile'c​​om .loopj.android:android-async-http:1.4.9'
compile'c​​om.github.bumptech.glide:glide:3.7.0'
compile'jp.wasabeef:glide-transformations:2.0 .1'
compile'c​​om.android.support.constraint:constraint-layout:1.0.2'
compile'c​​om.mikhaellopez:circularimageview:3.0.2'
}
apply plugin:'com.google.gms.google-services'


解决方案

在您的应用程序中 build.gradle

  allprojects {
存储库{
jcenter()
maven {
urlhttps://maven.google.com
}
}
}

然后添加依赖项:

 依赖关系{
compilecom.android.support:support-compat:26.0.1
}

您应该阅读


Please help me.

Uygulama önceden çalışıyordu.

Ama şimdi çalışmıyor

Here is the errors message when gradle sync

Here is my app Gradle configuration:

   apply plugin: 'com.android.application'
   android {
       compileSdkVersion 25
       buildToolsVersion '25.0.3'
       defaultConfig {
        minSdkVersion 16
        targetSdkVersion 25
        versionCode 1
        versionName '1.0'
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'),
  'proguard-rules.txt'
        }
    }
    repositories {
        jcenter()
        mavenCentral()  // GPUImage for Android
    }
    dexOptions {
        javaMaxHeapSize "4g"
    }
    productFlavors {
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile files('libs/acra-4.5.0.jar')
    compile files('libs/ormlite-android-4.43.jar')
    compile files('libs/ormlite-core-4.43.jar')
    compile files('libs/mysql-connector-java-3.0.17-ga-bin.jar')
    androidTestCompile('com.android.support.test.espresso:espresso-
    core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
    })
// If you want to use the GPU Filters
    compile 'com.android.support:appcompat-v7:25.3.1'
    compile 'com.android.support:design:25.3.1'
    compile 'com.android.support:cardview-v7:25.3.1'
    compile 'com.android.support:customtabs:25.3.1'
    testCompile 'junit:junit:4.12'
    compile 'com.onesignal:OneSignal:[3.5.3,4.0.0)'
    compile 'com.google.firebase:firebase-ads:10.0.0'
    compile 'com.google.firebase:firebase-messaging:10.0.0'
    compile 'com.loopj.android:android-async-http:1.4.9'
    compile 'com.github.bumptech.glide:glide:3.7.0'
    compile 'jp.wasabeef:glide-transformations:2.0.1'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'com.mikhaellopez:circularimageview:3.0.2'
}
apply plugin: 'com.google.gms.google-services'
解决方案

In your application build.gradle

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://maven.google.com"
        }
    }
}

And then add the dependencie(s):

dependencies {
    compile "com.android.support:support-compat:26.0.1"
}

You should read this https://developer.android.com/topic/libraries/support-library/setup.html

这篇关于无法解析com.android.support:support-v4:[26.0.0,26.1.0)安装存储库和同步项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 00:18