2016-10-25 44 views
1

請幫我解決的bug與批生產出錯
運行 後出現這個錯誤,我做同步,但什麼都沒有發生編譯'com.batch.android:batch-sdk:1.5+'錯誤在gradle中的這一行?

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; 

回答

0

這LIB僅適用於http://maven.batch.com/release Maven倉庫,所以請檢查,您的配置是否也指向此存儲庫<像這樣:

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