Caused by: java.lang.IllegalStateException: ParsePlugins is already initialized

后端 未结 5 2136
甜味超标
甜味超标 2020-12-07 00:50

I quit the app, relaunch it, I am getting an exception.

public void onCreate() {
-->here Parse.initialize(this, \"adfsfasdfs\",
            \"asdfadfsdf\"         


        
5条回答
  •  天涯浪人
    2020-12-07 01:36

    NEVERMIND, I've fixed it. The problem was due to a syntax error. Thanks to all for solution.

    This is weird as I've followed what's given but now I'm not getting any push notifications at all? The only changes I've made:

    1. add app class to the manifest &
    2. initialize parse in the app class. I'm using v1.10.1 of the SDK...

    Manifest

    
    

    Application class

    public class UseParse extends android.app.Application {
    @Override
    public void onCreate() {
        super.onCreate();
        Parse.initialize(this, "id", "key");
        ParseInstallation.getCurrentInstallation().saveInBackground();
    }
    

提交回复
热议问题