values-v24 Error for android studio


在添加库时,编译工程,发现出现了如下图所示错误。

values-v24 Error for android studio


目前在Stack Overflow 找到的方法 


 原文如下:

This typically occurs when your support library's major version does not match your compile SDK version.

For example, if you are compiling with SDK version 24, you must use version 24.x.x of the support library (and vice-versa).


这通常发生在您的支持库的主要版本与您的编译SDK版本不匹配时。

所以匹配下SDK编译版本与支持库的主要版本一致就可以了。

重新编译应该可以通过了!