title: Kinvey with admob on android
body: <p>Kinvey runs fine by itself but when I include</p>
  
  <p>compile 'com.google.android.gms:play-services-ads:8.4.0'
  compile 'com.google.android.gms:play-services-appindexing:8.4.0'</p>
  
  <p>in the gradle dependencies</p>
  
  <p>I get the following error</p>
  
  <p>Error:Execution failed for task ':android:transformClassesWithDexForDebug'.</p>
  
  <blockquote>
    <p>com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_31\bin\java.exe'' finished with non-zero exit value 2</p>
  </blockquote>
  
  <p>When I ad the kinvey jars to the gradle</p>
  
  <p>Now I have tried researching this problem and tried multidexing and increasing the max heapsize which resulted in the following error </p>
  
  <p>java.lang.NoClassDefFoundError: com.kinvey.java.core.KinveyClientRequestInitializer
                                                                                   at com.kinvey.android.Client$Builder.(Client.java:574)</p>
  
  <p>Oddly enough the issue only comes up when I include the ads api(WHICH MUST BE INCLUDED ALONG WITH KINVEY)</p>
  
  <p>I am not sure how to resolve this problem or if this problem is related to the size of the dex file or if it is a redundant package I would appreciate help in this matter and thank you in advance for your response.  </p>