这里提供解决方法,答案是发射
public class VERSION {
public static int SDK_INT;
static{
for (Class c:Build.class.getClasses()) {
if ("VERSION".equals(c.getSimpleName())) {
try {SDK_INT = c.getField("SDK_INT").getInt(null);bteak;} catch (NoSuchFieldException|IllegalAccessException e) {/*Nothing*/}}}
}
}