No virtual method getColor(I)

java.lang.NoSuchMethodError: No virtual method getColor(I)I in class Landroid/content/Context; or its super classes

解决方案:
将getColor()改为getResources().getColor()

你可能感兴趣的:(No virtual method getColor(I))