Error:The SDK Build Tools revision (23.0.3) is too low for project ':app'. Minimum required is 25.0.0

前端 未结 6 1925
天涯浪人
天涯浪人 2020-12-07 18:06

The title is a duplicate but my question is different.

The same project works fine and is allowed to be built on

buildToolsVersion 23.0.3

6条回答
  •  暖寄归人
    2020-12-07 18:33

    I solved this issue:

    added this code in android/build.gradle

    ```

    subprojects {
        afterEvaluate {project ->
            if (project.hasProperty("android")) {
                android {
                    compileSdkVersion 26
                    buildToolsVersion '26.0.0'
                }
            }
        }
    }
    

    ```

提交回复
热议问题