Android support library error after updating to 23.3.0

后端 未结 13 786
南笙
南笙 2020-11-30 02:28

I have been using android support v4 23.1.1 and recently tried to update it to 23.3.0 ( the latest one when this was asked) but I got the following error:

13条回答
  •  星月不相逢
    2020-11-30 02:54

    For me, The build tool version has to align with the dependency versions. So lets say the build tool version is 26.1.0, the Gradle dependency version has to obey it.

    The simplest way is to create a version variable & use it. See the example below

    ext {
        buildVersion = '26.1.0'
    }
    
    dependencies {
        compile "com.android.support:appcompat-v7:${buildVersion}"
    }
    

提交回复
热议问题