2017-08-30 76 views
0

我正在努力將uber整合到我的移動應用程序中。添加優步依賴項會給我的應用程序帶來錯誤

當我嘗試添加依賴關係:

compile 'com.uber.sdk:rides-android:0.6.1' 

這是我的gradle產出:

apply plugin: 'com.android.application' 
apply plugin: 'kotlin-android' 

android { 
    compileSdkVersion 25 
    buildToolsVersion "25.0.3" 
    useLibrary 'org.apache.http.legacy' 
    defaultConfig { 
     applicationId "com.sumo.traffic" 
     minSdkVersion 18 
     targetSdkVersion 25 
     multiDexEnabled true 
     versionCode 1 
     versionName "1.0" 
     testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
     dexOptions { 
      javaMaxHeapSize "4g" 
     } 
    } 
} 

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    compile project(':library2') 

    compile('com.google.http-client:google-http-client-jackson2:1.21.0') { 
     exclude group: 'org.apache.httpcomponents' 
    } 
    compile('com.google.api-client:google-api-client-android:1.17.0-rc') { 
     exclude module: 'httpclient' 
    } 
    compile('com.google.http-client:google-http-client-gson:1.17.0-rc') { 
     exclude module: 'httpclient' 
    } 
    compile project(path: ':Expandablelayout-library') 
    compile project(':compoundlayout') 
    // compile 'com.google.android.gms:play-services-appindexing:10.0.1' 


    compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" 
    compile 'com.sun.mail:android-mail:1.5.5' 
    compile 'com.sun.mail:android-activation:1.5.5' 
    compile 'com.uncopt:android.justified:1.0' 
    compile 'com.android.support:design:25.3.1' 
    compile 'com.android.support:appcompat-v7:25.3.1' 
    compile 'com.google.android.gms:play-services:11.0.2' 
    compile 'com.google.maps.android:android-maps-utils:0.4.4' 
    compile 'com.android.support:multidex:1.0.1' 
    compile 'com.android.support:cardview-v7:25.3.1' 
    compile 'com.android.support:recyclerview-v7:25.3.1' 
    compile 'com.squareup.picasso:picasso:2.5.2' 
    compile 'com.github.bumptech.glide:glide:3.7.0' 
    compile 'com.google.maps:google-maps-services:0.1.17' 
    compile 'com.squareup.retrofit:retrofit:1.9.0' 
    compile 'com.squareup.okhttp:okhttp:2.7.5' 
    compile 'com.squareup.okhttp:okhttp-urlconnection:2.7.5' 
    compile 'io.reactivex:rxjava:1.0.17' 
    compile 'io.reactivex:rxandroid:0.23.0' 
    compile 'com.squareup.okio:okio:1.1.0' 
    compile 'me.relex:circleindicator:[email protected]' 
    compile 'de.keyboardsurfer.android.widget:crouton:[email protected]' 
    compile 'com.google.android.gms:play-services-ads:11.0.2' 
    compile 'com.google.android.gms:play-services-auth:11.0.2' 
    compile 'com.google.android.gms:play-services-gcm:11.0.2' 
    compile 'com.android.support.constraint:constraint-layout:1.0.2' 
    compile 'com.github.bluejamesbond:textjustify-android:2.1.6' 

    testCompile 'junit:junit:4.12' 

} 
repositories { 
    mavenCentral() 
} 

當我嘗試添加尤伯杯的依賴,它崩潰的應用程序,並給我這個錯誤: https://paste.ofcode.org/iz2AjizutaPCiw7d8Uv34S 但當我刪除優步依賴。一切正常。

我不知道發生了什麼事。

+0

再次嘗試清潔和建設項目? –

+0

我總是這樣做。 – FreelancsAndroidLovesyou

+0

嘗試降級或升級RxJava lib版本。您沒有使用MultiDex支持,而是使用RxJava或MultiDex的錯誤點 –

回答

相關問題