jobin jobin - 1 year ago 231
Android Question

android Transform Exception

I get the following exception when I tried to run my project on a device with Kitkat O.S. I am not sure what this error is.It workes perfectly on lollipop device.


Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
> duplicate entry: com/android/volley/Request$Priority.class


apply plugin: ''

android {
compileSdkVersion 24
buildToolsVersion "23.0.3"

defaultConfig {
applicationId "com.stackoverflow.application"
minSdkVersion 15
targetSdkVersion 24
versionCode 1
versionName "1.0"
multiDexEnabled true

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), ''
apply plugin: 'maven'


repositories {

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile ''
compile ''
compile ''
compile ''
compile ''
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
compile project(':payUMoneysdk')

Answer Source

It looks like you already have volley library in one of your dependencies.

Remove the following line from your build.gradle.

compile ''
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download