更新的Andr​​oid内置的工具为18.0工具、Andr、oid

2023-09-06 10:16:53 作者:睫毛上的泪珠

我以前用Android的内置工具17来构建一个项目,我现在已经更新到18.0的工具,现在我改变build.gradle:

I used to use Android Built-Tools 17 to build a project, now the tools I have updated to 18.0, Now I change build.gradle :

android {
    compileSdkVersion 18
    buildToolsVersion "18.0.1"
}

当我运行这个,这是错误的,摇篮:执行失败的任务:HandyHis:compileDebugAidl。

when I run this, it was wrong, Gradle: Execution failed for task ':HandyHis:compileDebugAidl'.

未能找到生成工具版本18.0.0

failed to find Build Tools revision 18.0.0

我应该怎么办?

推荐答案

期待中的SDK管理器什么是你最大的Andr​​oid SDK内建工具版本,在Android复制项目中的build.gradle文件,此版本号/ buildToolsversion财产(对我来说,版本是18.1.1)。

Look in the SDK Manager what is your highest Android SDK Build-tools version, and copy this version number in your project "build.gradle" file in the android/buildToolsversion property (for me, version was "18.1.1").

希望它能帮助!

 
精彩推荐
图片推荐