Gradle: More than one variant of project :myLib matches the consumer attributes

后端 未结 5 1609
小鲜肉
小鲜肉 2020-12-07 13:01

A library that I wrote myLib uses RemoteMessage from Firebase, the app itself also uses Firebase.

Using gradle 4.7

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-07 13:48

    I got this error when I use google-services:3.3.0.

    Downgrade to classpath 'com.google.gms:google-services:3.2.1' in your project .gradle.

    It should solve the issue.

    Update: It should probably not occur in the current versions.

提交回复
热议问题