I had created an app and when tried to run,get an error like this.
ERROR: In MenuView, unable to find attribute android:preserveIco
In my case for the same error, when all else failed, I removed this line from Gradle config file, myproject/app/build.gradle
Gradle
myproject/app/build.gradle
config:compile 'com.android.support.constraint:constraint-layout:1.0.2'
and, voila! It worked.