I have this error when trying to make a module of a project
apply plugin: \'com.android.library\'
android {
compileSdkVersion 17
buildToolsVersion \
I have had this problem before with adding png files. I have discovered the problem with some of them since cleaning your project and closing AS does not solve every problem.
I did an experiment with GIMP when exporting images. Apparently, converting them to RGB fixes it. Some photos will be set to Indexed mode. Simply select Image>Mode>RGB. Then, export it and copy it into AS.