androidstudio 问题

本文解决了一个Android开发中遇到的错误:在评估项目时出现问题,失败应用插件id为com.android.application。建议将Gradle版本更改为2.10或更新版本,并确保build.gradle文件中包含正确的Gradle插件。如问题仍未解决,请检查是否使用了Gradle wrapper,若使用则尝试修改其配置。

 

 

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节点删掉重新编译就好了

 

转载于:https://www.cnblogs.com/wikiki/p/5409501.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值