Failed to apply plugin [id 'com.android.application']


* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin [id 'com.android.application']
   > Gradle version 2.10 is required. Current version is 4.4. If using the gradle wrapper, try editing the distributionUrl in D:\android\2018\201806\0622\Emol\Emol\gradle\wrapper\gradle-wrapper.properties to gradle-2.10-all.zip

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 0s

解决办法:

在工程项目下/gradle/gradle-wrapper.properties

 在红箭头所指的地方改成和你自己所需要的版本就不会报错报错了

猜你喜欢

转载自blog.csdn.net/qq_35572449/article/details/81069583