Generate APK fails - Duplicate Entry CubemapLoaderInfo.class

Anything about development not directly related to libgdx, e.g. OpenGL, Android APIs etc.

Generate APK fails - Duplicate Entry CubemapLoaderInfo.class

Postby KevinCourtney » Mon Sep 25, 2017 4:44 pm


I'm in process of converting my Libgdx Eclipse project to Android Studio. At one point I got it to finally generate the APK...then something changed and I'm now getting this error:

Error:Execution failed for task ':android:transformClassesWithJarMergingForDebug'.
> duplicate entry: com/badlogic/gdx/assets/loaders/CubemapLoader$CubemapLoaderInfo.class

I haven't touched any of the LIbgdx gradle stuff...I've cleaned and rebuilt the project multiple times.

Here's my dependencies:
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-x86"
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-x86"

version = '1.0'
ext {
appName = 'FootbagFreestyle'
gdxVersion = '1.9.4'
roboVMVersion = '2.3.0'

Anyone have any suggestions on what could be causing this problem?

Thanks in advance,

Posts: 26
Joined: Sun Mar 04, 2012 11:11 pm

Return to General Development

Who is online

Users browsing this forum: No registered users and 4 guests