AnsweredAssumed Answered

incompatibility between ESRI Android SDK and Google Play Services

Question asked by tawfiq.dawod on Dec 1, 2015
Latest reply on Dec 18, 2015 by ANohe-esristaff

There is the Execution error when I combine the ArcGis SDK in android in android studio ADT, there is the error:

-----------------------------------------

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

> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_66\bin\java.exe'' finished with non-zero exit value 1

-----------------------------------------

when I combine it with existing google play services in the project.

this is the build.gradle app file:

 

apply plugin: 'com.android.application'

android {

  compileSdkVersion 'Google Inc.:Google APIs:23'
   buildToolsVersion '23.0.2'

   defaultConfig {

  applicationId "com.eywa.paltrack"
   minSdkVersion 16
   targetSdkVersion 23
   versionCode 1
   versionName "1.0"
   multiDexEnabled true
   }

  buildTypes {

  release {

  minifyEnabled false
   proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
   }

  }

  packagingOptions {

  exclude 'META-INF/LGPL2.1'
   exclude 'META-INF/LICENSE'
   exclude 'META-INF/NOTICE'

   }

 

}

 

dependencies {

  compile fileTree(include: ['*.jar'], dir: 'libs')

  testCompile 'junit:junit:4.12'
   compile 'com.android.support:appcompat-v7:23.1.1'
   compile 'com.android.support:design:23.1.1'
   compile 'com.google.android.gms:play-services:8.3.0'
  
}

 

when I remove ArcGis Sdk library from my Project the project executed successfully.

Outcomes