androidstudio 问题

 

 

Error:(1, 1) A problem occurred evaluating project ':app'.
> Failed to apply plugin [id 'com.android.application']
   > Gradle version 2.10 is required. Current version is 2.4. If using the gradle wrapper, try editing the distributionUrl in E:\workplace\code\studiodemo\gradle\wrapper\gradle-wrapper.properties to gradle-2.10-all.zip

  

 

 

Error:(22, 0) Gradle DSL method not found: 'android()'
Possible causes:<ul><li>The project 'studiodemo' may be using a version of Gradle that does not contain the method.
<a href="open.wrapper.file">Open Gradle wrapper file</a></li><li>The build file may be missing a Gradle plugin.
<a href="apply.gradle.plugin">Apply Gradle plugin</a></li>

这个问题把最外层的build.gradle 里面的android节点删掉重新编译就好了

 

posted @ 2016-04-19 19:38  wikiki  阅读(426)  评论(0编辑  收藏  举报