android build splash.9.png error

sbs picture sbs · Sep 12, 2013 · Viewed 7.3k times · Source

I have a build fail due to the following error

[aapt] res/drawable-xhdpi/splash.png:0: error: Resource entry splash is already defined.

[aapt] res/drawable-xhdpi/splash.9.png:0: Originally defined here.

Any ideas? Thanks!

Answer

Harald picture Harald · Aug 8, 2014

This error could also happen, if you use cordova and renamed an existing image (in my case there was only splash.9.png present, but the same error occurred.

In this case you need to clean the project, using

./platforms/android/cordova/clean