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. How to deploy all native libs (armv7,aarch64,x86) in an APK bundle?

How to deploy all native libs (armv7,aarch64,x86) in an APK bundle?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 3 Posters 1.4k 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.
  • mmjvoxM Offline
    mmjvoxM Offline
    mmjvox
    wrote on last edited by mmjvox
    #1

    Hi
    google suggests to create an apk file that contains all of needed native libs (.so libs) in that one apk file for goal architectures
    ==> Google Play Ensure that your app supports 64-bit devices

    in android studio, it is said that this problem can be solved with add this line
    " ndk.abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64' "
    to build.gradle file
    but in qt when i added this line, it had no result and the libs folder in apk file conains only one of the architectures that named on qt build kit

    now i want to know, how can i create an apk file contains both armv7 and aarch64 ??

    If it is not possible, How can i upload each architecture for compatible devices?

    K 1 Reply Last reply
    0
    • mmjvoxM mmjvox

      Hi
      google suggests to create an apk file that contains all of needed native libs (.so libs) in that one apk file for goal architectures
      ==> Google Play Ensure that your app supports 64-bit devices

      in android studio, it is said that this problem can be solved with add this line
      " ndk.abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64' "
      to build.gradle file
      but in qt when i added this line, it had no result and the libs folder in apk file conains only one of the architectures that named on qt build kit

      now i want to know, how can i create an apk file contains both armv7 and aarch64 ??

      If it is not possible, How can i upload each architecture for compatible devices?

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @mmjvox

      Hi and welcome to devnet forum

      There is another thread about generation of 32- and 64-bit APKs in parallel https://forum.qt.io/topic/102625/build-32-64-bit-apk-using-qt-creator/5
      Basically you shall have two different toolchains there. One for 32-bit and one for 64-bit Android applications. When you create the APK-bundle through the respective toolchain all shold be automatic.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      3
      • R Offline
        R Offline
        Rebecca Gamble
        wrote on last edited by
        #3
        This post is deleted!
        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