Cannot resolve symbol ‘?attr/actionBarSize’ after updating Android Studio from 2.3 to 3.0 for buildToolsVersion ‘26.0.2’
Nothing helped, but changing: ?attr/actionBarSize to ?android:attr/actionBarSize did the job. That’s actually a bug in few versions. Even if you won’t fix it, Android will automatically fix it at runtime.