从Github上下载了一个demo ,但是Android Studio一直运行不成功,爆出了下面的错误

1
2
3
4
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.8. If using the gradle wrapper, try editing the distributionUrl in E:\workspace\GitHub\RxJavaApp-master\gradle\wrapper\gradle-wrapper.properties to gradle-2.10-all.zip

Message提醒为:

Warning:Gradle version 2.10 is required. Current version is 2.8. If
using the gradle wrapper

解决方法为:
File - Project Structure(Ctrl+Alt+Shift+S) - Project - 更改Gradle Version 为2.10
enter description here
enter description here

附:因为我本地已经有了2.10的Gradle版本,所以如果你没有该版本请下载或者更高其他版本试试

本文地址: http://itdais.com/2016/09/25/AS运行时异常(一)/