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. Android Development Guide
QtWS25 Last Chance

Android Development Guide

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
8 Posts 5 Posters 2.7k 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.
  • ideadesignerI Offline
    ideadesignerI Offline
    ideadesigner
    wrote on last edited by
    #1

    Hello Devnet,

    Is there any android development guide from zero to hello world level ? Because, I tried 3 different computers but I didn't do anything. 2 computers gave me same error in here. I want to make simple bluetooth app for android.
    Now, I use a windows installer:
    I have a lot of questions,
    -Which Qt version compatible which Android API?
    image
    -Should I use Android x86 or Android ARMv7 or etc. ?
    image
    -In tools section which MinGW do I need?
    image
    -At Qt 5.7 section has MinGW 5.3.0 and tools section has MinGW. Should I setup MinGW at tools section?
    -How to create an APK? and so on..

    So, what can I do now? :)
    Thanks,

    ? 1 Reply Last reply
    0
    • ideadesignerI ideadesigner

      Hello Devnet,

      Is there any android development guide from zero to hello world level ? Because, I tried 3 different computers but I didn't do anything. 2 computers gave me same error in here. I want to make simple bluetooth app for android.
      Now, I use a windows installer:
      I have a lot of questions,
      -Which Qt version compatible which Android API?
      image
      -Should I use Android x86 or Android ARMv7 or etc. ?
      image
      -In tools section which MinGW do I need?
      image
      -At Qt 5.7 section has MinGW 5.3.0 and tools section has MinGW. Should I setup MinGW at tools section?
      -How to create an APK? and so on..

      So, what can I do now? :)
      Thanks,

      ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      @ideadesigner Hi, Getting Started with Qt for Android should be helpful.

      1 Reply Last reply
      2
      • ideadesignerI Offline
        ideadesignerI Offline
        ideadesigner
        wrote on last edited by ideadesigner
        #3

        I tried again and I did it.

        Now, I use emulator API level 16 and from left side projects settings, I choosed 'Android build SDK: android-16'.
        But, I can not deploy some apps. For example, when I try to deploy "Bluetooth QML Chat Example" app to android (Qt 5.7 for android armv7) it gives me error.
        Some apps don't give me error.

        BUILD FAILED
        C:\Users\boost\AppData\Local\Android\android-sdk\tools\ant\build.xml:649: The following error occurred while executing this line:
        
        C:\Users\boost\AppData\Local\Android\android-sdk\tools\ant\build.xml:694: null returned: 1
        
        

        ... When project is open, I choose from left side projects;
        image

        • I used api 16 emulator,
        • I choosed 'Android build SDK: android-22'.
          And deploying process is fine.

        I didn't understand.

        D 1 Reply Last reply
        0
        • ideadesignerI ideadesigner

          I tried again and I did it.

          Now, I use emulator API level 16 and from left side projects settings, I choosed 'Android build SDK: android-16'.
          But, I can not deploy some apps. For example, when I try to deploy "Bluetooth QML Chat Example" app to android (Qt 5.7 for android armv7) it gives me error.
          Some apps don't give me error.

          BUILD FAILED
          C:\Users\boost\AppData\Local\Android\android-sdk\tools\ant\build.xml:649: The following error occurred while executing this line:
          
          C:\Users\boost\AppData\Local\Android\android-sdk\tools\ant\build.xml:694: null returned: 1
          
          

          ... When project is open, I choose from left side projects;
          image

          • I used api 16 emulator,
          • I choosed 'Android build SDK: android-22'.
            And deploying process is fine.

          I didn't understand.

          D Offline
          D Offline
          Devopia53
          wrote on last edited by
          #4

          @ideadesigner

          Hi.

          Some of the Android API are required Android 4.3(API Level 18) or later. For Bluetooth devices with low power requirements, Android 4.3 (API Level 18) introduces API support for Bluetooth Low Energy.

          Always check the version of the API before you can build.

          ideadesignerI 1 Reply Last reply
          0
          • D Devopia53

            @ideadesigner

            Hi.

            Some of the Android API are required Android 4.3(API Level 18) or later. For Bluetooth devices with low power requirements, Android 4.3 (API Level 18) introduces API support for Bluetooth Low Energy.

            Always check the version of the API before you can build.

            ideadesignerI Offline
            ideadesignerI Offline
            ideadesigner
            wrote on last edited by
            #5

            @Devopia53
            I see but I didn't use Bluetooth Low Energy.

            1 Reply Last reply
            0
            • Shrinidhi UpadhyayaS Offline
              Shrinidhi UpadhyayaS Offline
              Shrinidhi Upadhyaya
              wrote on last edited by
              #6

              Hi @ideadesigner,
              Try using Gradle instead of Ant.

              Shrinidhi Upadhyaya.
              Upvote the answer(s) that helped you to solve the issue.

              ideadesignerI 1 Reply Last reply
              1
              • Shrinidhi UpadhyayaS Shrinidhi Upadhyaya

                Hi @ideadesigner,
                Try using Gradle instead of Ant.

                ideadesignerI Offline
                ideadesignerI Offline
                ideadesigner
                wrote on last edited by
                #7

                @Shrinidhi-Upadhyaya
                Why do you suggest Gradle?

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  topse
                  wrote on last edited by
                  #8

                  Install latest mingw... I had problems with make without it...

                  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