In this video it shows the steps to add packagingOptions block in the gradle file in Android Studio. On adding the packagingOptions block it gives the deprecated unit error. This can be fixed by using packaging block instead of packagingOptions block. Also, use resources.excludes.add instead of exclude option. I hope…