Exclude one class file in gradle Android Studio
In my projects, I need to import third party jar file and Facebook SDK. compile files('libs/SkinSDK.jar') compile 'com.facebook.android:facebook-android-sdk:4.14.0' Both include same BundleJSONConverter class. So, I cannot do generate signed APK. It always shows duplicate entry com/facebook/internal/BundleJSONConverter. So, I want to exclude in Facebook or SkinSDK.jar. I tried like compile ('com.facebook.android:facebook-android-sdk:4.14.0') { exclude group: 'com.facebook.internal', module: 'BundleJSONConverter' } It's not working and showing same error. The exclude method of the configuration