I have this error when trying to make a module of a project
apply plugin: \'com.android.library\'
android {
compileSdkVersion 17
buildToolsVersion \
I was getting the same error and it worked for me. Hope it helps.
As Niklas said, you have to update to the latest Gradle version.
My way to solve the error:
build.gradle file in your project.Change:
dependencies {
classpath 'com.android.tools.build:gradle:1.1.0'
to:
dependencies {
classpath 'com.android.tools.build:gradle:1.1.3'
Sync your Android project with Gradle:
Clean your project.
If its still not working:
If you need more help, read the issue on Google Code!