Error:Cause: buildToolsVersion is not specified

前端 未结 12 2290
慢半拍i
慢半拍i 2020-12-24 00:50

I create a simple project and then I right-click on the project and then I use the make mudole app option. Now I have two build.gradle folders: 1-

12条回答
  •  爱一瞬间的悲伤
    2020-12-24 01:01

    Add buildToolsVersion property to your local build.gradle file.

    android {
        compileSdkVersion 27
        buildToolsVersion "26.0.1"
    
        defaultConfig {
            targetSdkVersion 27
        }
    }
    

    As per your requirements!! Then Try to build -> you will get build failure and this message :

    Failed to find Build Tools revision 26.0.1

    Install Build Tools 26.0.1 and sync project

    Then Click to Install build tools and your project is configured and you are good to go!!!

提交回复
热议问题