I have this same problem with any code (samples or my own) that uses the custom view AdView in an XML layout file. I had to down-grade my version of Google Play Services from 5 to 4, the previous version Google Play Services. I use Gradle as by build script environment so it was a matter of changing:
com.google.android.gms:play-services:5.+
to
com.google.android.gms:play-services:4.+
Once I did that, the error went away. This is only a temporary solution, but it lets me finish editing my XML layouts. I still plan to change back to using the latest version 5 and then test on real devices which don't show this error.