This is a follow up question to this question:
Update Android Support Library to 23.2.0 cause error: XmlPullParserException Binary XML file line #17
I got this same error in Android Studio 2.2 after I updated my Gradle dependencies to the latest versions but forgot to update the buildToolsVersion of my project.
I changed:
compile 'com.android.support:appcompat-v7:22.2.1'
to:
compile 'com.android.support:appcompat-v7:24.2.1'
While buildToolsVersion remained at "22.0.1" like so:
buildToolsVersion "22.0.1"
So all I did was to update the buildToolsVersion to 24
like so:
buildToolsVersion "24"
since it has previously been downloaded with SDK Manager. So check the latest buildToolsVersion
from SDK Manager and see if it matches the dependencies version.
Hope this helps someone.