I have a public abstract class and I\'m trying to use the getClass()
method, as I will need info from the class extending my abstract class. An example is this:
Casting my getClass()
call to Object
like this
((Object) this).getClass()
solves the problem (with non abstract classes) for me. It's not great, but it's working.
Also, manipulating your Android SDKs from the project settings and removing all JDK jars from your Android SDK resolves the error. Of course you'll have to reference it within your project to utilize the fix.