When I invoke a default method on API 16 device, I get VerifyError Exception. My code is similar to the below example. What's the minimum sdk support for the default method?
public class Person {
default boolean isDev() {
return true;
}
}
public class AndroidDev implements Person {
}
//in some class
new AndroidDev().isDev() <----- java.lang.VerifyError
When I invoke a default method on API 16 device, I get VerifyError Exception. My code is similar to the below example. What's the minimum sdk support for the default method?