Duplicate File Exception when build - okio

Hi,
I’m getting error below after I updated my Android SDK . Please advise how can I fix this. Thanks.

Execution failed for task ‘:transformResourcesWithMergeJavaResForDebug’.
> com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/maven/com.squareup.okio/okio/pom.xml
File1: /private/var/root/.gradle/caches/modules-2/files-2.1/com.squareup.okio/okio/1.13.0/a9283170b7305c8d92d25aff02a6ab7e45d06cbe/okio-1.13.0.jar
File2: /Library/WebServer/Documents/xxx/xxxxx/platforms/android/build/intermediates/exploded-aar/com.google.android.gms/play-services-basement/11.0.0/jars/classes.jar

add the following on build.gradle

android {

 packagingOptions {
     pickFirst 'META-INF/maven/com.squareup.okio/okio/pom.xml'
     pickFirst 'META-INF/maven/com.squareup.okio/okio/pom.properties'

}