Flutter開發過程中遇到的問題

has different version for the compile (26.1.0) and runtime (27.1.1) classpath

在使用 fluttertoast 的時候遇到的

處理方式:

build.gradle 中最後面添加:

subprojects {
    project.configurations.all {
        resolutionStrategy.eachDependency { details ->
            if (details.requested.group == 'com.android.support'
                    && !details.requested.name.contains('multidex') ) {
                details.useVersion "27.1.1"
            }
        }
    }
}

參考:github

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章