Could not get unknown property 'config' for type com.google.gms.googleservices.GoogleServicesPlugin$GoogleServicesPluginConfig

丶灬走出姿态 提交于 2019-11-30 00:34:01

问题


I'm trying to upgrade my libraries from :

classpath 'com.google.gms:google-services:4.2.0'

to

classpath 'com.google.gms:google-services:4.3.0'

and I'm getting below error :


回答1:


Updating OneSignal Plugin to 0.12.3 solved the problem for me:

buildscript {
    //.......
    dependencies {
        classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:0.12.3'
    }
    //....
}

Check this: https://github.com/OneSignal/OneSignal-Gradle-Plugin/issues/95




回答2:


I got similar issue and I resolved it by downgrading from 4.3.0 to 4.2.0 and sync the project from Android Studio

From

classpath 'com.google.gms:google-services:4.3.0'

To

classpath 'com.google.gms:google-services:4.2.0'


来源:https://stackoverflow.com/questions/56815277/could-not-get-unknown-property-config-for-type-com-google-gms-googleservices-g

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!