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)