简体   繁体   中英

Android Studio SDK version error after update

I just finished installing Android Studio and the JDK. Everything worked fine while I looked around the new interface. No errors or anything. After I checked for updates I went from version 0.5.2 to 0.6. When I restarted I got the error

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

Which SDK is it referring to and shouldn't it update along with Android Studio? Before I updated I did not have this message.

So Android Studio version 0.6 requires the Android SDK build tools to be 19.1 instead of the old 19.0.3.

To install this, follow these steps:

  1. Close all open projects.

  2. On the main Android Studio window, press Configure

  3. Then click SDK Manager

Once inside find the following build tools version:

构建所需的工具

Then tick the box and install the package.

Once your done with that, close the SDK Manager, restart Android Studio, and you should be good to go!

Hope this helps!

EDIT:

One more thing you need to do:

  1. Open your project.

  2. Navigate to your build.gradle file located inside your module. For you, I think it's in the app folder.

  3. Open the file.

Now you should see something like this: gradle文件

Where it says buildToolsVersion in the quotes, replace 19.0.3 with 19.1.0 . Now sync gradle files and everything should be solved.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM