how to avoid java.util.zip.ZipException in android studio at build time : Do not suggest to clean build or ./gredlew clean solution already tried a lot.

I simply want to avoid this error without excluding any jar file.

Error details
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/v7/cardview/BuildConfig.class