Gradle sync failed: Could not find method android() for arguments [build_aj7feyco0x5e5hj3g6wttaj6$_

错误的起因:

想将ADT中项目导入到AndroidStudio中,但是我的androidStudio中没有对应版本的SDK,因此导入失败了,就出现了如下的错误:

 Gradle sync failed: Could not find method android() for arguments [build_aj7feyco0x5e5hj3g6wttaj6$_run_closure3@66bfd205] on root project 'MobileSafer' of type org.gradle.api.Project.
         Consult IDE log for more details (Help | Show Log)

解决办法:

将top-level的build.gradle中的android{}删掉即可。

你可能感兴趣的:(android)