在gradle的这一行编译'com.batch.android:batch-sdk:1.5+'错误?

时间:2016-10-25 10:08:17

标签: java android xml gradle sdk

请帮我解决批处理错误的问题 运行后出现此错误 我做了同步但没有发生任何事情

dependencies {
                compile fileTree(dir: 'libs', include: ['*.jar'])
               androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
                    exclude group: 'com.android.support', module: 'support-annotations'
                })
                compile 'com.android.support:appcompat-v7:24.2.1'
                testCompile 'junit:junit:4.12'
                compile 'com.android.support:support-v4:23'
                compile 'com.mcxiaoke.volley:library:1.0.18'
                compile 'com.firebase:firebase-client-android:2.5.2+'
                compile 'com.google.android.gms:play-services:7.0.0'
                compile 'com.google.android.gms:play-services-gcm:7.0.0'
                compile 'com.google.android.gms:play-services-ads:7.0.0'
                 compile 'com.batch.android:batch-sdk:1.5+'
                 compile 'com.squareup.picasso:picasso:2.5.2'
             }

enter image description here

import com.batch.android.Batch;
import com.batch.android.Config;
import com.firebase.client.Firebase;
import com.google.android.gms.common.api.Batch;

1 个答案:

答案 0 :(得分:0)

此lib仅在http://maven.batch.com/release maven存储库中可用,因此请检查您的配置是否也指向此存储库<像这样:

repositories {
    ...
    maven {
        url "http://maven.batch.com/release"
    }
}