I’ve solved the problem. I was using an old version of Parse library and it was interfering with the new one. I’ve just changed the Parse.initialize()
lines to:
Parse.initialize(new Parse.Configuration.Builder(this)
.applicationId("MY_APP_ID")
.clientKey("MY_CLIENT_KEY")
.server("MY_SERVER_URL")
.build()
);
and it worked!