workaround for com.android.build.gradle.internal.model.ApiVersionImpl cannot be cast to java.lang.Integer