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
Forum Updated to NodeBB v4.3 + New Features

Android Development Guide

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
8 Posts 5 Posters 2.7k Views 2 Watching
  • 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.
  • I Offline
    I Offline
    ideadesigner
    wrote on 10 Jul 2016, 13:22 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 10 Jul 2016, 14:51
    0
    • I ideadesigner
      10 Jul 2016, 13:22

      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 10 Jul 2016, 14:51 last edited by
      #2

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

      1 Reply Last reply
      2
      • I Offline
        I Offline
        ideadesigner
        wrote on 12 Jul 2016, 09:54 last edited by ideadesigner 7 Dec 2016, 10:02
        #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 12 Jul 2016, 11:15
        0
        • I ideadesigner
          12 Jul 2016, 09:54

          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 12 Jul 2016, 11:15 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.

          I 1 Reply Last reply 12 Jul 2016, 20:57
          0
          • D Devopia53
            12 Jul 2016, 11:15

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

            I Offline
            I Offline
            ideadesigner
            wrote on 12 Jul 2016, 20:57 last edited by
            #5

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

            1 Reply Last reply
            0
            • S Offline
              S Offline
              Shrinidhi Upadhyaya
              wrote on 27 Jul 2016, 08:17 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.

              I 1 Reply Last reply 2 Aug 2016, 17:28
              1
              • S Shrinidhi Upadhyaya
                27 Jul 2016, 08:17

                Hi @ideadesigner,
                Try using Gradle instead of Ant.

                I Offline
                I Offline
                ideadesigner
                wrote on 2 Aug 2016, 17:28 last edited by
                #7

                @Shrinidhi-Upadhyaya
                Why do you suggest Gradle?

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  topse
                  wrote on 3 Aug 2016, 09:49 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