Remove jar in output apk
configurations { provided } dependencies { provided files('libs/xxxx.jar') } android.applicationVariants.all { variant -> variant.javaCompile.classpath += configurations.provided }