Select to view content in your preferred language

incompatibility between ESRI Android SDK and Google Play Services

3514
1
12-01-2015 05:35 AM
tawfiqdawod
Deactivated User

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.

Tags (2)
0 Kudos
1 Reply
AlexanderNohe1
Honored Contributor

Hello,

I believe that you are missing a compile in your dependencies here.  My dependencies have this line in it:

compile 'com.esri.arcgis.android:arcgis-android:10.2.7'