attr/colorError not found error when using com.android.support:recyclerview-v7:26.0.0-beta2

Change the following details it will work fine,

compileSdkVersion 26
buildToolsVersion "26.0.0-beta2"

Also upgrading compileSDKVersion and buildToolsVersion to 26 (it was 25) fixed the issue for me:

compileSdkVersion 26
buildToolsVersion '26.0.2'
...
dependencies {
    ...
    compile 'com.android.support:appcompat-v7:26.0.2'

}

In general, make sure to keep all the versions consistent (compile, build, appcompat libraries).

This is to ensure compilation and stability on runtime (one can also see lint warning about the latter if lint finds differnet support library versions)


Revision 26.0.0 Beta 2

Please note that 26.0.0-beta2 is a pre-release version. Its API surface is subject to change, and it does not necessarily include features or bug fixes from the latest stable versions of Support Library.

For your problem you can use "26.0.0-beta2" . It will be better if you use Stable Version .