Unable to build new projects

  • Replies:0
  • OpenNot stickiedUnanswered
  • Forum posts: 4

Jul 28, 2016 9:35:29 AM via Website

Hi,

I've just installed Android Studio and I'm trying to create my first project, my "Hello World" first application if you like.

I have created three projects and even though I have not added or removed anything I have the following issues:
1. A XML file is incomplete, usually "colors.xml" and because it is incomplete the XML structure is not correct/complete.
2. Because of this the build fails ...
3. So I attempt to complete the XML just so I can get a build ...
4. But the build still fails with the following error:
:app:mergeDebugResources
AAPT err(Facade for 1363768840): libpng error: Not a PNG file
AAPT err(Facade for 1671147041): libpng error: Not a PNG file
AAPT err(Facade for 736782506): libpng error: Not a PNG file
AAPT err(Facade for 424840523): libpng error: Not a PNG file
AAPT err(Facade for 424840523): libpng error: Not a PNG file

FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:mergeDebugResources'.

    Some file crunching failed, see logs for details

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

What I do not understand is why generating a brand new project ends up with invalid/incomplete XML files. Why?

Suggestions welcome :-)

Thanks
PSk

— modified on Jul 28, 2016 9:36:50 AM