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. Qt Android built from source with "-force-debug-info -separate-debug-info" deploys *.debug libs with release apk!?

Qt Android built from source with "-force-debug-info -separate-debug-info" deploys *.debug libs with release apk!?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 2 Posters 601 Views
  • 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
    MS_36
    wrote on 15 Mar 2019, 10:35 last edited by
    #1

    I am using fabric/crashlytics and in order to get symbolicated crash reports I need to provide unstripped libraries to crashlytics.
    It appears the Qt Online Installer does not include Debug Symbols for Android with the Option "Qt Debug Information Files" enabled.
    Because of that I build Qt from source with the additional configuration "-force-debug-info -separate-debug-info".

    After uploading my first apk's that way I got proper crash reports from crashlytics, but I noticed the apk doubled in size.
    It turns there is more stuff in "/assets/--Added-by-androiddeployqt--/".
    It contains compared to before an additional directory "plugins" and for every shared library there is also the unstripped library that gets deployed.

    Am I doing something wrong here or is this a bug?

    I tried to use gradle packagingOptions{ exclude '**/*.debug' } to exclude the files from the apk, but without any success.
    Maybe there is some other workaround?

    M 1 Reply Last reply 18 Mar 2019, 13:14
    0
    • M MS_36
      15 Mar 2019, 10:35

      I am using fabric/crashlytics and in order to get symbolicated crash reports I need to provide unstripped libraries to crashlytics.
      It appears the Qt Online Installer does not include Debug Symbols for Android with the Option "Qt Debug Information Files" enabled.
      Because of that I build Qt from source with the additional configuration "-force-debug-info -separate-debug-info".

      After uploading my first apk's that way I got proper crash reports from crashlytics, but I noticed the apk doubled in size.
      It turns there is more stuff in "/assets/--Added-by-androiddeployqt--/".
      It contains compared to before an additional directory "plugins" and for every shared library there is also the unstripped library that gets deployed.

      Am I doing something wrong here or is this a bug?

      I tried to use gradle packagingOptions{ exclude '**/*.debug' } to exclude the files from the apk, but without any success.
      Maybe there is some other workaround?

      M Offline
      M Offline
      MS_36
      wrote on 18 Mar 2019, 13:14 last edited by
      #2

      @MS_36 I "solved" this myself by moving all *.debug files (unstripped libraries) in the installation directory of Qt to another directory.
      It isnt a nice solution, but it works.

      1 Reply Last reply
      0
      • _ Offline
        _ Offline
        _RBob
        wrote on 17 Oct 2019, 08:42 last edited by
        #3

        Hello @MS_36,
        Sorry for digging up an old topic. Did you manage to get this working?
        I mean Crashlytics + QT Android + NDK debug symbols?

        I've successfully connected my app with Crashlytics, but still I'm unable to upload debug symbols.
        What's your configuration in build.gradle file?

        crashlytics {
            enableNdk true
            androidNdkOut 'build/intermediates/rs/debug/obj'
            androidNdkLibsOut  'build/intermediates/jniLibs/debug'
            manifestPath 'AndroidManifest.xml'
        }
        

        How did you setup androidNdkOut and androidNdkLibsOut variables?
        Thank you in advance for your response

        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