Android IDE (AIDE) Support Forum

Error after AIDE update: must implement List methods?

Hello All,
I have some Java classes extending ArrayList like:

class MyList extends ArrayList <Integer> { ... }

It has worked fine till now - but after the latest update there are lots of errors with all version of ‘of’ method, as:

This class must implement the abstract method 'java.util.List<E>.of<E>(E, E, E, E, E, E, E, E)'

Maybe I have to refresh some imports or libraries?

Thanks, Joseph

1 Like

Most likely you need to refresh your libraries. I’m not sure though.

I also get this with classes that extend ArrayList . Following the dependencies it appears the new android.jar is using the Java 9 API version of the java.util.List interface which came into Android release 30 (Android 11). Your only options are to implement all these missing abstract methods, or make your classes wrappers for ArrayList objects rather than derive them directly from ArrayList.

It is worth noting that Android Studio release 30 version of java.util.List appears to provide default stubs for the new methods, so my own apps still compile fine in Android Studio even at the latest release.

So I guess this is another bug in AIDE.