2016-12-16 34 views
0

我不能夠解決以下錯誤執行失敗的任務「:機器人:transformClassesWithJarMergingForRelease」

com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/internal/zzqx.class 

我不知道問題出在衝突的版本,但我不知道那的gradle很好地解決它。

我的Android依賴是:

dependencies { 
     compile project(":core") 
     compile "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion" 
     natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi" 
     natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a" 
     natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-arm64-v8a" 
     natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86" 
     natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86_64" 
     compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion" 
     natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-armeabi" 
     natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-armeabi-v7a" 
     natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-arm64-v8a" 
     natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-x86" 
     natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-x86_64" 
     compile 'com.google.android.gms:play-services-ads:10.0.0' 

     compile 'com.google.android.gms:play-services-games:10.0.0' 
     compile project(':BaseGameUtils') 



    } 

我應該如何解決呢?

回答

0

我不得不仔細地結合前面的類似類型的問題得到answer.I有以下行添加到配置塊build.gradle

all*.exclude group: 'com.google.android.gms', module: 'play-services-plus' 
+0

標記您的答案接受,否則,人們就會滾滾而來幫助。 –

+0

看起來像我還是一個noob,它說你可以在2天內接受你的答案 –

相關問題