I have this error when trying to make a module of a project
apply plugin: \'com.android.library\' android { compileSdkVersion 17 buildToolsVersion \
Sometimes, it can be caused by wrong naming for xml or resource file.
At least, for me, that problem was solved by changing name .