Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Deployment in Android devices by using QtCreator on MacBook Host
QtWS25 Last Chance

Deployment in Android devices by using QtCreator on MacBook Host

Scheduled Pinned Locked Moved Solved Installation and Deployment
8 Posts 6 Posters 781 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
    cod3r
    wrote on last edited by
    #1

    Hi, folks! Happy day!
    i am testing an Android example app for deployment by using a MacBook (MacOs Monterrey v 12.5 Apple M1 Pro), but unhappy is not doing deployment.
    There are some error messages:

    *Compile is OK!

    1)target Qt 6.5 Clang armeabi-v7a

    BUILD SUCCESSFUL in 3s
    *40 actionable tasks: 40 executed
    Android package built successfully in 4.765 ms.
    -- File: /Users/fcarlos/Qt65/Examples/Qt-6.5.0/widgets/widgets/build-digitalclock-Android_Qt_6_5_0_Clang_armeabi_v7a-Release/android-build//build/outputs/apk/release/android-build-release-unsigned.apk

    15:58:33: The command "/Users/coder/Library/Android/sdk/platform-tools/adb -s emulator-5554 pull /system/lib/libc.so /Users/coder/Qt65/Examples/Qt-6.5.0/widgets/widgets/build-digitalclock-Android_Qt_6_5_0_Clang_armeabi_v7a-Release/libc.so" terminated with exit code 1.
    15:58:33: Package deploy: Failed to pull "/system/lib/libc.so" to "/Users/coder/Qt65/Examples/Qt-6.5.0/widgets/widgets/build-digitalclock-Android_Qt_6_5_0_Clang_armeabi_v7a-Release/libc.so".
    Error while building/deploying project digitalclock (kit: Android Qt 6.5.0 Clang armeabi-v7a)
    When executing step "Deploy to Android device"*

    Someone could help me?

    Thanks in advance.
    Carlos

    J.HilkJ 1 Reply Last reply
    0
    • J.HilkJ J.Hilk

      @cod3r that's a somewhat recent change,

      one used to only need the certificate/signing when one wanted to upload to the PlayStore, but nowadays deploying to modern Android Phones also requires this.

      You see the option here, in QtCreator:
      f5e8662f-b917-4282-b916-d62a77080ebe-image.png

      more info to the keystone
      https://developer.android.com/training/articles/keystore

      C Offline
      C Offline
      cod3r
      wrote on last edited by
      #5

      @J-Hilk Thanks! Save the Community ,-)

      Really, it is just click on button Create Certificate by using "Build Android APK" :
      The textfield in Keystone was empty, by default, before.

      Captura de Tela 2023-05-17 às 10.41.58.png

      Cod3r

      1 Reply Last reply
      1
      • C cod3r

        Hi, folks! Happy day!
        i am testing an Android example app for deployment by using a MacBook (MacOs Monterrey v 12.5 Apple M1 Pro), but unhappy is not doing deployment.
        There are some error messages:

        *Compile is OK!

        1)target Qt 6.5 Clang armeabi-v7a

        BUILD SUCCESSFUL in 3s
        *40 actionable tasks: 40 executed
        Android package built successfully in 4.765 ms.
        -- File: /Users/fcarlos/Qt65/Examples/Qt-6.5.0/widgets/widgets/build-digitalclock-Android_Qt_6_5_0_Clang_armeabi_v7a-Release/android-build//build/outputs/apk/release/android-build-release-unsigned.apk

        15:58:33: The command "/Users/coder/Library/Android/sdk/platform-tools/adb -s emulator-5554 pull /system/lib/libc.so /Users/coder/Qt65/Examples/Qt-6.5.0/widgets/widgets/build-digitalclock-Android_Qt_6_5_0_Clang_armeabi_v7a-Release/libc.so" terminated with exit code 1.
        15:58:33: Package deploy: Failed to pull "/system/lib/libc.so" to "/Users/coder/Qt65/Examples/Qt-6.5.0/widgets/widgets/build-digitalclock-Android_Qt_6_5_0_Clang_armeabi_v7a-Release/libc.so".
        Error while building/deploying project digitalclock (kit: Android Qt 6.5.0 Clang armeabi-v7a)
        When executing step "Deploy to Android device"*

        Someone could help me?

        Thanks in advance.
        Carlos

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on last edited by
        #2

        @cod3r have you enabled remote usb debugging on your phone?


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

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

          Hi, H.Hilk. Great day!

          What I did:

          1. I enabled in Setting my cell phone in Debug Mode and I am using a USB 2.0 Cable. That is seem ok because in the Kit the Device "SM-A115M" is displayed.

          2)Also I set Option build & run for "Android Qt 6.5.0 Clang armeabi-v7a" but now is displaying the following message:

          "adb:failed to install .../build-qmlchart-Android_Qt_6_5_0_Clang_armeabi_v7a-Released etc : Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES] .. Failed to collect certificates .."

          Well, my friends, someone could say me what "certificates" is been report by Compiler?

          Thanks in advance
          Carlos

          J.HilkJ 1 Reply Last reply
          0
          • C cod3r

            Hi, H.Hilk. Great day!

            What I did:

            1. I enabled in Setting my cell phone in Debug Mode and I am using a USB 2.0 Cable. That is seem ok because in the Kit the Device "SM-A115M" is displayed.

            2)Also I set Option build & run for "Android Qt 6.5.0 Clang armeabi-v7a" but now is displaying the following message:

            "adb:failed to install .../build-qmlchart-Android_Qt_6_5_0_Clang_armeabi_v7a-Released etc : Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES] .. Failed to collect certificates .."

            Well, my friends, someone could say me what "certificates" is been report by Compiler?

            Thanks in advance
            Carlos

            J.HilkJ Offline
            J.HilkJ Offline
            J.Hilk
            Moderators
            wrote on last edited by
            #4

            @cod3r that's a somewhat recent change,

            one used to only need the certificate/signing when one wanted to upload to the PlayStore, but nowadays deploying to modern Android Phones also requires this.

            You see the option here, in QtCreator:
            f5e8662f-b917-4282-b916-d62a77080ebe-image.png

            more info to the keystone
            https://developer.android.com/training/articles/keystore


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            C 1 Reply Last reply
            1
            • J.HilkJ J.Hilk

              @cod3r that's a somewhat recent change,

              one used to only need the certificate/signing when one wanted to upload to the PlayStore, but nowadays deploying to modern Android Phones also requires this.

              You see the option here, in QtCreator:
              f5e8662f-b917-4282-b916-d62a77080ebe-image.png

              more info to the keystone
              https://developer.android.com/training/articles/keystore

              C Offline
              C Offline
              cod3r
              wrote on last edited by
              #5

              @J-Hilk Thanks! Save the Community ,-)

              Really, it is just click on button Create Certificate by using "Build Android APK" :
              The textfield in Keystone was empty, by default, before.

              Captura de Tela 2023-05-17 às 10.41.58.png

              Cod3r

              1 Reply Last reply
              1
              • C cod3r has marked this topic as solved on
              • T Offline
                T Offline
                teniie
                wrote on last edited by
                #6
                This post is deleted!
                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  course123
                  wrote on last edited by
                  #7

                  To deploy your Qt-based application on Android devices using Qt Creator on a MacBook host, you can follow these general steps:

                  Set up Android SDK and NDK: Install the Android SDK (Software Development Kit) and NDK (Native Development Kit) on your MacBook. You can download them from the official Android Developer website.
                  Configure Qt Creator: Open Qt Creator and go to Preferences (Qt Creator -> Preferences). Under Devices > Android, add the paths to your Android SDK and NDK installations. Make sure the necessary Android versions and tools are installed via the SDK Maintenance tool in Qt Creator.

                  Create a Deployment Kit: In Qt Creator, go to Projects (left sidebar) and select your project. Under the Build Settings tab, select Add Kit and choose Android as the type. Provide a name for the kit and select the Android device you want to deploy to.

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    GunForce
                    wrote on last edited by
                    #8
                    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