Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Android "The file name must end with .xml". But its a PNG
Forum Updated to NodeBB v4.3 + New Features

Android "The file name must end with .xml". But its a PNG

Scheduled Pinned Locked Moved Solved Mobile and Embedded
4 Posts 2 Posters 8.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • nonesenseN Offline
    nonesenseN Offline
    nonesense
    wrote on last edited by
    #1

    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

    sierdzioS 1 Reply Last reply
    0
    • nonesenseN nonesense

      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

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @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.

      (Z(:^

      1 Reply Last reply
      1
      • nonesenseN Offline
        nonesenseN Offline
        nonesense
        wrote on last edited by
        #3

        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

        sierdzioS 1 Reply Last reply
        3
        • nonesenseN nonesense

          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

          sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          @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!

          (Z(:^

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved