android - Error while running on pre-Lollipop versions -


i'm getting error

error:execution failed task ':app:transformclasseswithjarmergingfordebug'. com.android.build.api.transform.transformexception: java.util.zip.zipexception: duplicate entry: android/support/v7/util/sortedlist$batchedcallback.class

here build gradle:

apply plugin: 'com.android.application'  android {     compilesdkversion 23     buildtoolsversion "24.0.2"     uselibrary 'org.apache.http.legacy'         defaultconfig {         applicationid "com.cuztomise.services"         minsdkversion 11         targetsdkversion 21         multidexenabled =true         compileoptions {             sourcecompatibility javaversion.version_1_7             targetcompatibility javaversion.version_1_7          }     }      buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.txt'         }     } }  dependencies {      compile filetree(dir: 'libs', include: ['*.jar'])     testcompile 'junit:junit:4.12'     compile 'com.android.support:appcompat-v7:23.4.0'        compile 'com.android.support:design:23.4.0'     compile 'com.android.support:recyclerview-v7:23.2.1'     compile 'com.android.support:cardview-v7:23.2.1'     compile 'com.github.bumptech.glide:glide:3.6.1'     compile 'com.android.support:palette-v7:23.1.1'     compile 'de.hdodenhof:circleimageview:1.3.0'     compile 'com.parse.bolts:bolts-android:1.+'     compile 'com.google.http-client:google-http-client-android:+'     compile 'com.google.api-client:google-api-client-android:+'     compile 'com.google.api-client:google-api-client-gson:+'     compile 'com.google.code.gson:gson:2.2.4'     compile 'com.google.android.gms:play-services-gcm:8.3.0'     compile 'com.google.android.gms:play-services-maps:8.3.0'     compile 'com.android.support:multidex:1.0.1'    } apply plugin: 'com.google.gms.google-services' 

use build took sdk v- 21 , java version 1_7 or below.

https://developer.android.com/about/dashboards/index.html

are android apps backwards compatible?

read 1 important: is possible use java 8 android development?


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -