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. androiddeployqt release issues
Servers for Qt installer are currently down

androiddeployqt release issues

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 2 Posters 677 Views 1 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.
  • M Offline
    M Offline
    Marc_Van_Daele
    wrote on last edited by
    #1

    I'm using Qt 5.12.4 and when running the following command

    <...>/androiddeployqt --input <...>/build-MyApp-Android_for_armeabi_v7a_Clang_Qt_5_12_4_for_Android_ARMv7-Release/android-libMyApp.so-deployment-settings.json --output <...>/android-build --android-platform android-28 --jdk /usr/lib/jvm/java-8-openjdk-amd64 --gradle
    

    I notice two strange things

    1. when running from QtCreator as part of a normal build (after selecting a release build in the bottom left), I see the following steps
    :preBuild UP-TO-DATE
    :preDebugBuild UP-TO-DATE
    :checkDebugManifest
    ...
    

    So it still seems to select debug versions of these tasks.
    Any idea why? This also happen with a simple empty application

    1. when running from the command line, I see
    :preBuild UP-TO-DATE
    :preReleaseBuild UP-TO-DATE
    :checkReleaseManifest
    

    but I also run into the following error

    [Fatal Error] :3:214: The value of attribute "name" associated with an element type "item" must not contain the '<' character.
    Could not read <...>/Qt/Android/android-sdk/platform-tools/api/annotations.zip
    java.io.IOException: Could not parse XML from android/accounts/annotations.xml
    

    Is this harmful? How can I avoid this?

    Thanks in advance,

    Marc

    M 1 Reply Last reply
    0
    • M Marc_Van_Daele

      I'm using Qt 5.12.4 and when running the following command

      <...>/androiddeployqt --input <...>/build-MyApp-Android_for_armeabi_v7a_Clang_Qt_5_12_4_for_Android_ARMv7-Release/android-libMyApp.so-deployment-settings.json --output <...>/android-build --android-platform android-28 --jdk /usr/lib/jvm/java-8-openjdk-amd64 --gradle
      

      I notice two strange things

      1. when running from QtCreator as part of a normal build (after selecting a release build in the bottom left), I see the following steps
      :preBuild UP-TO-DATE
      :preDebugBuild UP-TO-DATE
      :checkDebugManifest
      ...
      

      So it still seems to select debug versions of these tasks.
      Any idea why? This also happen with a simple empty application

      1. when running from the command line, I see
      :preBuild UP-TO-DATE
      :preReleaseBuild UP-TO-DATE
      :checkReleaseManifest
      

      but I also run into the following error

      [Fatal Error] :3:214: The value of attribute "name" associated with an element type "item" must not contain the '<' character.
      Could not read <...>/Qt/Android/android-sdk/platform-tools/api/annotations.zip
      java.io.IOException: Could not parse XML from android/accounts/annotations.xml
      

      Is this harmful? How can I avoid this?

      Thanks in advance,

      Marc

      M Offline
      M Offline
      mvuori
      wrote on last edited by
      #2

      Fatal errors typically are harmful... Quite often build problems are due to the NDK version. 19c is the one to use.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Marc_Van_Daele
        wrote on last edited by Marc_Van_Daele
        #3

        I checked and I'm already using NDK-19c.

        I did find out one more thing: the problem only occurs when signing the apk. This explains why it didn't happen from within QtCreator initially (where I didn't sign) and that it did happen from the command line.

        The problematic file here is part of the sdk platform-tools/api/annotations.zip and this zip file seems to contain an invalid XML android/accounts/annotations.xml.

        Apparently, this is an issue in the Google build tools: https://issuetracker.google.com/issues/116182838

        Going back to platform-tools 28.0.0 fixed it for me.
        I've closed this topic for now.

        1 Reply Last reply
        1

        • Login

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