Android "The file name must end with .xml". But its a PNG
-
Hello,
I am trying to build an Android APK. This works fine, if I do not sign the packet.
But when I want to sign it with my generated keystore, a xml file is expected as icon for the app.:Unable do incremental execution: full task run D:\QtProjects\QDmi\build-QDmi-Android_f_r_armeabi_v7a_Clang_Qt_5_12_0_for_Android_ARMv7-Release\android-build\res\drawablemdpi\ic_launcher.png: Error: The file name must end with .xml :mergeReleaseResources FAILED
This is very wired, because, this definitely has to be a png file and gets used as icon on the android desktop, when not signing the apk.
Does anybody have a idea?
Thanks and Regards
Jens -
@nonesense said in Android "The file name must end with .xml". But its a PNG:
drawablemdpi
This should read
drawable-mdpi
.Other than that - I have no idea, I've never seen such error before.
-
Hello Sierdzio,
thank you for your reply.
I found out, that it is now state of the art, to put the app-icon not to "drawable", but to folders called "mipmap".
I have changed the folder names and the location entry in the AndroidManifest. Now it works.Jens
-
@nonesense said in Android "The file name must end with .xml". But its a PNG:
I found out, that it is now state of the art, to put the app-icon not to "drawable", but to folders called "mipmap".
Eh, why do they keep changing everything, all the time :-( Even the most basic APIs get changed constantly.
Thanks for posting the correct solution, it may help more people!