我想在我的Android應用程序中添加一個優步「請求」按鈕。在我的gradle這個build文件我已經添加了以下行:在Android的優步SDK
compile 'com.uber.sdk:rides-android:0.5.0'
自動的Android工作室詢問,因爲他們已經改變了同步的文件的gradle。之後,我得到了500多個錯誤與我的項目,但是當我刪除依賴關係,這一切都恢復正常。
任何人都可以請幫我解決這個問題嗎?
模塊gradle這個腳本:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
android {
useLibrary 'org.apache.http.legacy'
}
defaultConfig {
applicationId "com.example.android.myuberapp"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets { main { assets.srcDirs = ['src/main/assets', 'src/main/assets/fonts'] } }
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile files('libs/android-async-http-1.4.4.jar')
compile files('libs/volley.jar')
compile 'com.android.support:appcompat-v7:23.2.0'
compile 'com.android.support:design:23.2.0'
compile 'com.google.android.gms:play-services:8.4.0'
compile 'com.github.sembozdemir:ViewPagerArrowIndicator:1.0.0'
compile 'com.google.maps.android:android-maps-utils:0.4+'
compile 'com.github.jakob-grabner:Circle-Progress-View:v1.2.9'
compile 'me.grantland:autofittextview:0.2.+'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.uber.sdk:rides-android:0.5.0'
}
全套的錯誤:
發佈一些錯誤會有所幫助。 – nicobatu
嘿,我從事這個SDK。你可以發佈你的Gradle腳本和錯誤,我會幫你調試嗎? – tsmith
@tsmith我添加了錯誤和gradle文件。希望你能幫助。 –