I saw the message twice:
Failed to apply plugin [id 'com.android.application'] Gradle version 2.1 is required.
Current version is 2.2.1. If using the gradlewrapper,
try editing the distributionUrl in /Users/Mac1/Downloads/u2020-dagger2 /gradle/wrapper/gradle-wrapper.properties to gradle-2.1-all.zip
Another flavor is that you really need 2.2, again with a suggestion to track down the gradle -wrapper.properties file. In any case, I really need to know when the wrapper is used or not.
Now from this post it seems that neither Studio nor Gradle are sure that the wrapper is being used. Well, I'm not sure either. So my question is what determines if a shell is used or not? And how do you set this switch? BTW, the above message is completely nonsense in Studio, since in any case it requires 2.2 in Studio 1.1. In my opinion, it is recommended to offer a Gradle update, rather than offering this shell replacement when there is no reason to think that the latest version of Gradle will not work.
Is it wise to see this message every time you upgrade to gradle. There must be such a gap. This is simply illogical.
PS: Android, . , Studio. Android, , , sdk, . . , gradle/studio, github, . , , - .
, Gradle 2.1+ . Mins, fixing Gradle 2.1.1 URL-. , . , , , .