I am using Android Studio 0.3.4 with Gradle construct. I get this error message when creating my project:
Gradle: execution failed for task> Failed to call IncrementalTask.taskAction ()
This is due to the fact that the Google game services and GoogleAdMobAdsSdk-6.4.1 conflict. My .gradle assembly has this entry:
dependencies {
compile 'com.android.support:appcompat-v7:+'
compile 'com.android.support:support-v13:13.0.0'
compile 'com.google.android.gms:play-services:4.0.30'
compile files('libs/GoogleAdMobAdsSdk-6.4.1.jar')
When I remove GoogleAdMobAdsSdk, then it builds fine. How can I solve this problem?
this is mistake:
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added: Lcom/google/ads/AdRequest$Err
orCode;
at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:12
3)
thanks
source
share