Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved how to build apk target for API level 30 by using qt5.12.4

    Mobile and Embedded
    2
    3
    318
    Loading More Posts
    • 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.
    • C
      CellCS last edited by

      Already upgrade Android Studios, and downloaded SDKs, NDKs.
      but target SDK is api 16-29, has no 30.
      QT preference/device/Android/SDK manager has 30 related sdk.
      Thanks

      jsulm 1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion @CellCS last edited by

        @CellCS Did you try with more recent Qt version?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • C
          CellCS last edited by

          @jsulm Thanks a lot

          Try 1:

          Due to there is no 30 in QT 5.12.4:

          47954989-9cb2-4ed8-ba78-7aa8635b6339-image.png
          I tried to add:

          <uses-sdk android:minSdkVersion="22" android:targetSdkVersion="30"/>
          

          so I manually set 30 in AndroidManifest.xml,

          android 64bit apk is built, but the app can not connect with wifi, and log get this "

          QNetworkInterface/AF_NETLINK: found unknown interface with index 1
          ....
          

          If set android:targetSdkVersion="29", has no any issue.

          Try 2:

          I update with QT 5.15.6, Android Qt 5.15.6 Clang Multi-Abi, and set this in build.gradle:

          defaultConfig {
              resConfig "en"
             minSdkVersion = 22
             targetSdkVersion = 30
          }
          

          App could be build on usb-connected Android 12 device (Pixel5), but even login can not show up. only show app icon at the top of while background.

          Would you mind give me some suggestion or hint to solve this? thanks a lot

          1 Reply Last reply Reply Quote 0
          • First post
            Last post