Skip to content Skip to sidebar Skip to footer

Uber Sdk In Android

I am trying to add an Uber 'request a ride' button in my android application. In my gradle build file I have added the following line: compile 'com.uber.sdk:rides-android:0.5.0' A

Solution 1:

It looks like you've past the 64k limit and should enable multidex.

The majority of those "errors" are actually warnings that gradle seems to be grouping together. Check the last couple lines of the error for the exact message.

In your build.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'
}

And in your manifest:

<?xml version="1.0" encoding="utf-8"?><manifestxmlns:android="http://schemas.android.com/apk/res/android"package="com.example.android.multidex.myapplication"><application...android:name="android.support.multidex.MultiDexApplication">
        ...
    </application></manifest>

Separately:

Since the Uber SDK isn't that large, another suggestion to delay multidex is to only the use the Play services libraries you actually need.

For example, instead of

'com.google.android.gms:play-services:8.4.0'

You could use just cloud messaging (if that is the component used).

com.google.android.gms:play-services-gcm:8.4.0

See more here

Post a Comment for "Uber Sdk In Android"