XmlPullParserException Binary XML file line #17 tag requires viewportWidth > 0

前端 未结 7 1833
轻奢々
轻奢々 2021-02-18 15:31

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 tag re

7条回答
  •  难免孤独
    2021-02-18 15:55

    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.

提交回复
热议问题