android中的Uber SDK
我正试图在我的android应用程序中添加一个Uber“请求搭车”按钮。在我的gradle构建文件中,我添加了以下行:android中的Uber SDK,android,sdk,uber-api,Android,Sdk,Uber Api,我正试图在我的android应用程序中添加一个Uber“请求搭车”按钮。在我的gradle构建文件中,我添加了以下行: compile 'com.uber.sdk:rides-android:0.5.0' Android studio会在gradle文件发生更改时自动请求同步这些文件。在这之后,我的项目出现了500多个错误,但当我删除依赖项时,所有这些都会恢复正常 谁能帮我解决这个问题 模块gradle脚本: apply plugin: 'com.android.application' a
compile 'com.uber.sdk:rides-android:0.5.0'
Android studio会在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'
}
全套错误:
看起来您已经超过了64k限制,应该启用 这些“错误”中的大多数实际上是格拉德尔似乎正在分组的警告。检查错误的最后几行以了解确切的消息 在您的身材中。gradle
android {
compileSdkVersion 21
buildToolsVersion "21.1.0"
defaultConfig {
...
minSdkVersion 14
targetSdkVersion 21
...
// Enabling multidex support.
multiDexEnabled true
}
...
}
dependencies {
compile 'com.android.support:multidex:1.0.0'
}
并且在您的清单中:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.android.multidex.myapplication">
<application
...
android:name="android.support.multidex.MultiDexApplication">
...
</application>
</manifest>
您可以只使用云消息传递(如果使用的是该组件)
看起来您已经超过了64k限制,应该启用 这些“错误”中的大多数实际上是格拉德尔似乎正在分组的警告。检查错误的最后几行以了解确切的消息 在您的身材中。gradle
android {
compileSdkVersion 21
buildToolsVersion "21.1.0"
defaultConfig {
...
minSdkVersion 14
targetSdkVersion 21
...
// Enabling multidex support.
multiDexEnabled true
}
...
}
dependencies {
compile 'com.android.support:multidex:1.0.0'
}
并且在您的清单中:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.android.multidex.myapplication">
<application
...
android:name="android.support.multidex.MultiDexApplication">
...
</application>
</manifest>
您可以只使用云消息传递(如果使用的是该组件)
发布一些错误会有所帮助。嘿,我在这个SDK上工作过。你能发布你的gradle脚本和错误,我来帮你调试吗?@tsmith我添加了错误和gradle文件。希望你能提供帮助。发布一些错误会有所帮助。嘿,我在这个SDK上工作过。你能发布你的gradle脚本和错误,我来帮你调试吗?@tsmith我添加了错误和gradle文件。希望你能帮忙。谢谢!这对我有用。我把这两者结合起来了。我首先设置了MultiDex,然后清理了gradle文件中的编译器。谢谢!这对我有用。我把这两者结合起来了。我首先设置MultiDex,然后清理gradle文件中的编译器。