Programming Tips - Error:Execution failed for task ':myApp:transformClassesWithJarMergingForDebug'.

Date: 2016sep11 OS: Android Q. Error:Execution failed for task ':myApp:transformClassesWithJarMergingForDebug'. > com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/common/internal/zzv$zza$zza.class How can I avoid this error that occurs when I try to run my app in Android Studio? A. Make sure your google libraries are all at the same version:
dependencies { compile 'com.google.firebase:firebase-core:9.4.0' compile 'com.google.firebase:firebase-ads:9.0.1' // Oh noes, different version }
dependencies { compile 'com.google.firebase:firebase-core:9.4.0' compile 'com.google.firebase:firebase-ads:9.4.0' // This works }