Android Studio- Program type already present: com.google.android.gms.internal.measurement.zzwp

前端 未结 14 1275
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-30 01:35

Yesterday,my app was working fine.

Today, I don\'t know why, the app didn\'t compile anymore after I reopened the Android Studio.

The error shown is

14条回答
  •  囚心锁ツ
    2020-11-30 01:54

    Firebase is the reason they are updating version numbers like they don't care about the developers.

    First things first. Update the classpath in project level gradle

    dependencies {
    
            classpath 'com.google.gms:google-services:3.2.1'
    
        }
    

    Next, Whatever the tools you might be using like analytics, dynamic links, and so forth. Use the appropriate versioned dependency.

    https://firebase.google.com/support/release-notes/android
    

    In my case, I was using A/B testing through remote config, so I need to update it from

    implementation 'com.google.firebase:firebase-config:15.0.0'
    

    to

    implementation 'com.google.firebase:firebase-config:15.0.2'
    

    This should work without any glitch. And also, please post this kind of issues to Firebase so that they don't do this kind of changes without a heads-up or without a proper documentation.

提交回复
热议问题