If you use a gradle wrapper, then in your project called "gradle" there will be a folder with a subfolder named "wrapper", inside which there are 2 files:
- gradle -wrapper.jar
- gradle -wrapper.properties
Open "gradle -wrapper.properties" and change the location where "3.3" to "2.14.1" is indicated. Then sync the gradle and it will automatically download 2.14.1.
If you are using the new 2.3 Android Studio, you need to use gradle wrapper 3.3 as the minimum supported version of the gradle shell. If so, then you have to download Android Studio 2.2 or fix any problem in your project that needs gradle version 2.14.1 gradle.
To learn more about the problems, try the following:. / gradlew clean assemble -stacktrace
This will clear your project, try to compile it, and if / when it fails, it will show you a stack error.
source share