Could not get unknown property 'config' fo

2020-03-01 04:38发布

问题:

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'