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

标签 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;

最佳答案

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

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

关于java - 在gradle中的这一行编译 'com.batch.android:batch-sdk:1.5+'错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40237112/

相关文章:

java - 如何在 Android 运行时加载资源和类?

android - 如何为 Appium 中使用的测试数据库建立种子?

java - 读取 xml 节点时出现 classcastException

java - 将 ActiveMQ 服务与 Web 服务集成 (Mule ESB)

java - ActionBar 仅适用于 ThemeOverlay

java - 将 URI 转换为仅包含主机、端口和路径的字符串

java - 与元素类型 "X"关联的属性名称 "Y"必须后跟 ' = ' 字符

android - 确保释放 OpenGL 纹理内存

php - 在 PHP 中插入数据库

javascript - 在 JavaScript 中使用 XMLHttpRequest.send()