In your build.gradle project (NOT your application module) make sure that it uses the tools to build android gradle in 1.2.0 or higher. Therefore, in your file, the dependency section should look something like this:
dependencies { classpath 'com.android.tools.build:gradle:1.3.+' }
If you always want to use the latest gradle build tools, change it to:
dependencies { classpath 'com.android.tools.build:gradle:+' }
From OP:
This dosnt solves my problem. I need a custom plugin version 'com.android.tools.build: gradle: 1.0.0' in my project, so I installed it in this build.gradle file of the project. The problem is that this worked using gradle 2.2.1, but since android studio 1.3 uses gradle 2.4, it does not work. So I need to somehow get android studio to use gradle version 2.2.1, so I can use gradle plugin 1.0.0.
source share