parse anonymous class does not implement abstract method

Davide Piras

I am trying to retrieve objects from Parse cloud storage in a button click event in my Main Activity, this is the simple code I copied from the parse.com site examples:

    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 like my "new CountCallback" is creating an anonymous calss which does not implement an abstract method, but I copied the code 100% from parse.com online docs here, what else could be wrong in my Android Studio project?

'anonymous com.mobilevision.wtrend.MainActivity$4' is not abstract and does not override abstract method done(int,ParseException) in CountCallback

Mike M.

It would seem that you have (or possibly your IDE has) imported the wrong ParseException class. It should be com.parse.ParseException.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Error: anonymous class is not abstract and does not override abstract method

From Dev

Java Error: Class 'Anonymous' must either be declared abstract or implement abstract method 'actionPerformed(ActionEvent)' in 'ActionListener'

From Dev

Java Error: Class 'Anonymous' must either be declared abstract or implement abstract method 'actionPerformed(ActionEvent)' in 'ActionListener'

From Dev

Error: "class must implement abstract method X", but it already does

From Dev

Class must be declared as abstract or implement abstract method

From Dev

Anonymous class is not abstract and does not override (Android + Retrofit)

From Dev

Class is not abstract and does not override abstract method

From Dev

Class is not abstract and does not override abstract method error

From Dev

How to Implement Extension Method in Abstract Class

From Dev

Implement abstract method inside of scalatest class

From Dev

Class must either be declared abstract or implement abstract method

From Dev

Class must either be declared abstract or implement abstract method?

From Dev

Class must either be declared abstract or implement abstract method error

From Dev

Class must either be declared abstract or implement abstract method: Intellij error?

From Dev

RxAndroid: Class must either be declared abstract or implement abstract method error

From Dev

Class must either be declared abstract or implement abstract method: Intellij error?

From Dev

Java child class not able to implement parent class's abstract method

From Dev

anonymous class extending an abstract class

From Dev

Does abstract class hide or override the method of the interface?

From Dev

Class is not abstract and does not override abstract method onClick(View) in OnClickListener

From Dev

Implement only one method from interface in anonymous class

From Dev

Java - <anonymous State$1> is not abstract and does not override abstract method next() in State

From Dev

Abstract class with private derived classes: implement method for some

From Dev

Implement IDisposable in abstract class

From Dev

I tried to implement abstract class and interface in a class and only interface members got called and abstract method didnt?

From Dev

Is it possible to instantiate abstract class using anonymous inner class and mechanism to access method within it

From Dev

Nested abstract class in an abstract class and how to implement it

From Dev

Inherit abstract class and don't implement its abstract method. Is it possible?

From Dev

Class SubList() must either be called abstract or implement abstract method 'listIterator' in 'List'

Related Related

  1. 1

    Error: anonymous class is not abstract and does not override abstract method

  2. 2

    Java Error: Class 'Anonymous' must either be declared abstract or implement abstract method 'actionPerformed(ActionEvent)' in 'ActionListener'

  3. 3

    Java Error: Class 'Anonymous' must either be declared abstract or implement abstract method 'actionPerformed(ActionEvent)' in 'ActionListener'

  4. 4

    Error: "class must implement abstract method X", but it already does

  5. 5

    Class must be declared as abstract or implement abstract method

  6. 6

    Anonymous class is not abstract and does not override (Android + Retrofit)

  7. 7

    Class is not abstract and does not override abstract method

  8. 8

    Class is not abstract and does not override abstract method error

  9. 9

    How to Implement Extension Method in Abstract Class

  10. 10

    Implement abstract method inside of scalatest class

  11. 11

    Class must either be declared abstract or implement abstract method

  12. 12

    Class must either be declared abstract or implement abstract method?

  13. 13

    Class must either be declared abstract or implement abstract method error

  14. 14

    Class must either be declared abstract or implement abstract method: Intellij error?

  15. 15

    RxAndroid: Class must either be declared abstract or implement abstract method error

  16. 16

    Class must either be declared abstract or implement abstract method: Intellij error?

  17. 17

    Java child class not able to implement parent class's abstract method

  18. 18

    anonymous class extending an abstract class

  19. 19

    Does abstract class hide or override the method of the interface?

  20. 20

    Class is not abstract and does not override abstract method onClick(View) in OnClickListener

  21. 21

    Implement only one method from interface in anonymous class

  22. 22

    Java - <anonymous State$1> is not abstract and does not override abstract method next() in State

  23. 23

    Abstract class with private derived classes: implement method for some

  24. 24

    Implement IDisposable in abstract class

  25. 25

    I tried to implement abstract class and interface in a class and only interface members got called and abstract method didnt?

  26. 26

    Is it possible to instantiate abstract class using anonymous inner class and mechanism to access method within it

  27. 27

    Nested abstract class in an abstract class and how to implement it

  28. 28

    Inherit abstract class and don't implement its abstract method. Is it possible?

  29. 29

    Class SubList() must either be called abstract or implement abstract method 'listIterator' in 'List'

HotTag

Archive