I have this error when trying to make a module of a project
apply plugin: \'com.android.library\' android { compileSdkVersion 17 buildToolsVersion \
I had faced this similar error too. In my case it was one of my picture files in my drawable folder. Removing the picture that was unused solved the problem for me. So, make sure to remove any unused items from drawable folder.
drawable