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 build apk target for API level 30 by using qt5.12.4
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 671 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.
  • C Offline
    C Offline
    CellCS
    wrote on last edited by
    #1

    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

    jsulmJ 1 Reply Last reply
    0
    • C CellCS

      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

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @CellCS Did you try with more recent Qt version?

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

      1 Reply Last reply
      0
      • C Offline
        C Offline
        CellCS
        wrote on last edited by
        #3

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

        • Login

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