简体   繁体   English

找不到Android Gradle DSL方法

[英]Android Gradle DSL method not found

I'm new to Android and trying to import a project to Android Studio but I read all comments related to this error on StackOverflow but none of them works for me. 我是Android的新手,正在尝试将项目导入Android Studio,但我在StackOverflow上阅读了与该错误相关的所有注释,但是它们对我都不起作用。

The thing I can't find any SDK to install 23.0.0 cr3 the only SDK available is 23.0.1 or higher. 事情我找不到任何SDK安装23.0.0 cr3只有SDK可为23.0.1或更高版本。

It's really killing me and I spend 3 days to fix it, but I could not solve the issue. 这真的很害我,我花了3天的时间修复它,但是我无法解决问题。

Here is some screenshot for the error and the page that need to make the changes. 这是该错误以及需要进行更改的页面的一些屏幕截图。

Build.gradle: Build.gradle: 在此处输入图片说明

Error: 错误: 在此处输入图片说明

Check the name of the folder inside your build-tool sdk folder, is on path [YOUR_ANDROID_SDK_PATH]\\build-tools\\23.0.1 <-- mine is 23.0.1 检查您的构建工具sdk文件夹中的文件夹名称是否位于路径[YOUR_ANDROID_SDK_PATH] \\ build-tools \\ 23.0.1 <-我的是23.0.1

So change buildToolsVerions to "23.0.1". 因此,将buildToolsVerions更改为“ 23.0.1”。 That should works 那应该工作

Hope it helps!! 希望能帮助到你!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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