private void checkInterfaceMethodDeclaration(ConcreteMethod declaredMethod) { if (!dexOptions.apiIsSupported(DexFormat.API_DEFINE_INTERFACE_METHODS)) { String reason = String.format( "defining a %s interface method requires --min-sdk-version >= %d (currently %d)" + " for interface methods: %s.%s", declaredMethod.isStaticMethod() ? "static" : "default", DexFormat.API_DEFINE_INTERFACE_METHODS, dexOptions.minSdkVersion, declaredMethod.getDefiningClass().toHuman(), declaredMethod.getNat().toHuman()); warn(reason); } }