Could not initialize WonderPush using the initializer class, BuildConfig options or manifest <meta-data> options!

I get this message, how do I fix it ?

I get it as soon as launching the app!

Could not initialize WonderPush using the initializer class, BuildConfig options or manifest options!

Hi,

First, make sure you using the latest version of the Android SDK (v3.1.1)?

Then, make sure that you have properly setup the necessary information as shown in Step 4. Configure the SDK in your app/build.gradle (not the topmost build.gradle file).

If it’s still not good, then you’re probably not setting this configuration inside android.defaultConfig but some place else that is not used in the current configuration/flavor you’re testing. You can duplicate these lines inside each of your configurations/flavors if necessary.

If all else fails, you can use alternate ways of specifying configuration options, like string resources or AndroidManifest.xml meta-data tags.
You can find how to specify each configuration option for each of these 3 alternatives here, look for the tabs in the code samples.

Best,