Java – parsing anonymous classes does not implement abstract methods

I'm trying to retrieve objects from parse cloud storage from button click events in my main activity, which is from parse Com website sample copy simple code:

ParseQuery<ParSEObject> query = ParseQuery.getQuery("WtestObj2");
    query.countInBackground(new CountCallback() {

        public void done(int count,ParseException e) {
            if (e == null) {
                //
            } else {
                //
            }
        }
    });

When I build, I get the following error. It seems that my "new countcallback" is creating an anonymous calss that does not implement abstract methods, but I copy the code 100% from parse Com online document here, what else may be wrong in my android studio project?

Solution

It seems that you have (or your ide has) imported the wrong parseexception class It should be com parse. ParseException.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>