How to change build tools version in Android Studio 3.0.1?

前端 未结 1 1080
滥情空心
滥情空心 2021-02-05 09:01

I just upgraded my Android studio from 2.3 to 3.0.1. But I get this error message(I have already installed API 27 ) and don\'t know how to fix it, because I couldn\'t find the t

1条回答
  •  借酒劲吻你
    2021-02-05 09:59

    Your project is looking for Build Tools version 26.0.2, but you haven't yet downloaded and installed it on your computer.

    To download it, go to Tools > Android > SDK Manager, then click on the "SDK Tools" tab at the top of the new window. Then select the "Show Package Details" checkbox in the lower right-hand corner. Finally, scroll down to where you see 26.0.2, check the checkbox next to it, and click "OK" to begin the install process.

    If you want to change the Build Tools version in your project, that is specified in project's build.gradle file (in the 'app' module). Open the file and either add or update the Build Tools version you want to use by adding/updating the following property in the 'android' section:

    android {
        buildToolsVersion "27.0.3"
        ...
    }
    

    0 讨论(0)
提交回复
热议问题