Could not get unknown property 'config' fo

2020-03-01 04:42发布

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 :

enter image description here

2条回答
smile是对你的礼貌
2楼-- · 2020-03-01 04:52

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'
查看更多
▲ chillily
3楼-- · 2020-03-01 05:06

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

查看更多
登录 后发表回答