i use android studio 1.2.1.1 and it doesn't give me any error for new projects.
but for imported projects it gives me an warning about mismatched Encoding (this issue). i changed project and IDE encoding to UTF-8 and this warning doesn't appear any more.
but , after that , it gives me this error.
F:WorkworkspaceNITaskappuildintermediates
esdebugdrawable-hdpi-v4ic_launcher.png: error: Duplicate file.
F:WorkworkspaceNITaskappuildintermediates
esdebugdrawable-hdpiic_launcher.png: Original is here. The version qualifier may be implied.
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:sdkuild-tools22.0.1aapt.exe'' finished with non-zero exit value 1
and in these projects , there isn't R class in my main module.
i read many questions like finished with non zero exit value but wasn't useful
update:
after clean project , it gives me many error about my resources like this:
AAPT err(1779619686): F:WorkworkspaceNITaskappsrcmain
esdrawable-xhdpishadow.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…