title: Gradle version 2.2 is required. Current version is 2.10
body: <p>I am trying to use gradle build. It gives me error saying that </p>
  
  <blockquote>
    <p>Failed to apply plugin [id 'com.android.library']
    Gradle version 2.2 is required. Current version is 2.10. If using the gradle wrapper, try editing the distributionUrl in /home/sanjeewa/workspace/Android/UVCCamera/gradle/wrapper/gradle-wrapper.properties to gradle-2.2-all.zip</p>
  </blockquote>
  
  <p>But my gradle-wrapper.properties includes gradle-2.4-all.zip. I have changed it to gradle-2.2-all.zip 
  Still same problem.</p>
  
  <p>When I run  gradle -version in terminal Gradle 2.10 shows as version.</p>
  
  <p>How to solve that error??</p>
  
  <p>my build gradle file is </p>
  
  <pre><code> buildscript { 
     repositories { 
         jcenter() 
     } 
     dependencies { 
         classpath 'com.android.tools.build:gradle:1.3.0' 
     } 
   } 
  
   allprojects { 
     repositories { 
         jcenter() 
     } 
   } 
  </code></pre>