更新后的Android Studio的SDK版本错误 [英] Android Studio SDK version error after update
问题描述
我刚刚完成安装的Android Studio和JDK。一切运行良好,而我看了看周围的新界面。任何错误或任何东西。当我检查更新,我从0.5.2版本到0.6。当我重新启动我得到了错误
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
错误:该SDK生成工具版本(19.0.3)太低项目:应用程序。要求最低为19.1.0
Error:The SDK Build Tools revision (19.0.3) is too low for project ':app'. Minimum required is 19.1.0
是指哪一个SDK来,不应该将其更新与Android工作室一起去吗?在我更新我没有这个消息。
Which SDK is it referring to and shouldn't it update along with Android Studio? Before I updated I did not have this message.
推荐答案
因此Android Studio的0.6版本要求的Android SDK编译工具是19.1,而不是旧19.0.3。
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:
-
关闭所有打开的项目。
Close all open projects.
在Android的Studio中的主窗口,preSS 配置
On the main Android Studio window, press Configure
然后点击 SDK管理器
在里面找到以下构建工具的版本:
Once inside find the following build tools version:
再勾选框,并安装该软件包。
Then tick the box and install the package.
在你做完这些后,关闭SDK管理器,重新启动Android的工作室,你应该是好去!
Once your done with that, close the SDK Manager, restart Android Studio, and you should be good to go!
希望这有助于!
还有一件事,你需要做的:
One more thing you need to do:
-
打开项目。
Open your project.
导航到位于您的模块中的 build.gradle
文件。对你来说,我认为这是在应用
文件夹。
Navigate to your build.gradle
file located inside your module. For you, I think it's in the app
folder.
打开文件。
现在你应该看到这样的事情:
Now you should see something like this:
凡说 buildToolsVersion
的引号,用 19.1替换
。现在同步摇篮文件,一切都应该被解决了。 19.0.3
。 0
Where it says buildToolsVersion
in the quotes, replace 19.0.3
with 19.1.0
. Now sync gradle files and everything should be solved.
这篇关于更新后的Android Studio的SDK版本错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!