I'm currently trying to install Urban Airship in my android app however I get the following error when I try to compile it.

Error:Execution failed for task ':app:transformClassesWithDexForDebug'.

> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2

After a bit of digging I found that if I compile Google's Firebase core with the Urban Airship SDK I get the error message. I've also noticed the SDK is relying on GCM, will the SDK support Firebase in the future?

Thanks,

 

Didn't find what you were looking for?

New post

Comments

3 comments

  • Hello,

    The Urban Airship Android SDK currently relies on GCM. Our SDK requires a GCM sender ID (the project number of the app in GCM). To ensure that you are able to send push notifications to Android users, you will want to switch from Firebase to GCM if you haven't already. The steps for integrating our Android SDK and GCM into your app are listed in the link above. If you run into any issues throughout this process, we have a GCM Troubleshooting Guide that you can refer to as well.

    Best regards,

    Jenn Miller, Urban Airship Support

    0
  • We are also seeing the same issue, but can confirm we do have an existing GCM sender ID - Google actually suggests the opposite of your solution. Migrating from GCM to Firebase as GCM is eventually being deprecated.

    0
  • Hi James,

    Here are some quick steps for Firebase while we work on updating our documentation.

    1. Head to http://console.firebase.google.com
    2. Create a project, or select an existing project.
    3. Project Settings (Gear next to Project Name in the left column)
    4. Cloud Messaging

    This page contains the API Server Key, which you push in your Urban Airship Dashboard under Settings (Gear Icon) > Services > GCM.

    It also contains the Sender ID, which you place as the value of gcmSender in the airshipconfig.properties file of your Android Project.

    Now you should be able to send through the Urban Airship API and Dashboard.

    Please let me know if you have any other questions or concerns.

    0

Please sign in to leave a comment.