Abdullah Shafique
Abdullah Shafique

Reputation: 6918

Android Parse Crash

I am trying to add Parse to my Android App. I first started by dragging the Parse files into my Android Studio project. Next I added this to my application onCreate:

Parse.initialize(this, myParseAppID, myParseClientID");

The app ID and client ID are correct but the app still crashes.

I am not getting any logs:

enter image description here

Also I DID add this to my manifest:

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

Thanks in advance!

Upvotes: 0

Views: 422

Answers (2)

Irfan Raza
Irfan Raza

Reputation: 2953

How did you add the dependency on Android studio? Try adding the parse jar file directly to your libs folder. It works for me.

Upvotes: 0

Ashwin S Ashok
Ashwin S Ashok

Reputation: 3663

Try to use like this

 Parse.initialize(Splash.this, "","");
    ParseInstallation.getCurrentInstallation().saveInBackground();
    PushService.setDefaultPushCallback(Splash.this, ParsePush.class);

Upvotes: 1

Related Questions