Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt error when attempting to compile android APK
Qt 6.12 LTS is out! See what's new in the release blog

Qt error when attempting to compile android APK

Scheduled Pinned Locked Moved Solved Mobile and Embedded
12 Posts 3 Posters 8.5k 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.
  • LordfulL Offline
    LordfulL Offline
    Lordful
    wrote on last edited by
    #3

    Hi,

    I try to do that but I have this error :

    * What went wrong:
    Execution failed for task ':compileDebugAidl'.
    > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/me/Documents/Android/sdk/build-tools/23.0.2/aidl'' finished with non-zero exit value 139
    

    Do you have any idea of solutions ?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #4

      Did you do a full rebuild of your project ? i.e. nuke the shadow build before compiling.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • LordfulL Offline
        LordfulL Offline
        Lordful
        wrote on last edited by
        #5

        Yes of course, to be sure, I deleted the whole folder which came after building.

        But the error is the same as the error with ant, it's always about aidl inside of sdk/tools/ant/build.xml.

        1 Reply Last reply
        0
        • Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on last edited by
          #6

          @Lordful have you taken a look at this post? It looks similar to your issue and there are some suggestions, mostly related to Ant.

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          LordfulL 1 Reply Last reply
          0
          • Pablo J. RoginaP Pablo J. Rogina

            @Lordful have you taken a look at this post? It looks similar to your issue and there are some suggestions, mostly related to Ant.

            LordfulL Offline
            LordfulL Offline
            Lordful
            wrote on last edited by Lordful
            #7

            @Pablo-J.-Rogina Hum yeah, I read that but it's an old topic, maybe it's because API 23 has problems ?

            EDIT : I tried to build with API-10 and API-18 but there is this error, again and again :

            [mergemanifest] Manifest merger disabled. Using project manifest only.
                 [echo] Handling aidl files...
                 [aidl] Found 2 AIDL files.
                 [aidl] Compiling 2 AIDL files.
            
            BUILD FAILED
            /Users/me/Documents/Android/sdk/tools/ant/build.xml:658: The following error occurred while executing this line:
            /Users/me/Documents/Android/sdk/tools/ant/build.xml:664: null returned: 139
            
            1 Reply Last reply
            0
            • Pablo J. RoginaP Offline
              Pablo J. RoginaP Offline
              Pablo J. Rogina
              wrote on last edited by Pablo J. Rogina
              #8

              @Lordful mmm it looks definitely connected to Ant... Could you please describe your environment (OS, tools version, installation paths)?

              Also, have you taken a look at build.xml:664, the line with the error?

              In addition, this bug report may be applicable to you

              Upvote the answer(s) that helped you solve the issue
              Use "Topic Tools" button to mark your post as Solved
              Add screenshots via postimage.org
              Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

              LordfulL 1 Reply Last reply
              0
              • Pablo J. RoginaP Pablo J. Rogina

                @Lordful mmm it looks definitely connected to Ant... Could you please describe your environment (OS, tools version, installation paths)?

                Also, have you taken a look at build.xml:664, the line with the error?

                In addition, this bug report may be applicable to you

                LordfulL Offline
                LordfulL Offline
                Lordful
                wrote on last edited by Lordful
                #9

                @Pablo-J.-Rogina Here is the informations :

                OS : OS X 10.7.5
                JDK : 1.8.0_73
                path : /Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home

                SDK : 24.4.1 - Latest on official website
                path : /Users/me/Documents/Android/sdk

                NDK : r11b-darwin-x86_64 - Latest on official website
                path : /Users/me/Documents/Android/ndk

                Ant : 1.9.6
                path : /usr/local/Cellar/ant/1.9.6/bin/ant

                EDIT : Build Tools: 23.0.2

                Available version of Android : API 18, 10.

                Here is the error on line of build.xml :

                <aidl executable="${aidl}"
                                    framework="${project.target.framework.aidl}"
                                    libraryBinAidlFolderPathRefid="project.library.bin.aidl.folder.path"
                                    genFolder="${gen.absolute.dir}"
                                    aidlOutFolder="${out.aidl.absolute.dir}">
                                <source path="${source.absolute.dir}"/>
                </aidl>
                

                I test each value of this and there are all good, except project.library.bin... which isn't a value.

                1 Reply Last reply
                0
                • LordfulL Offline
                  LordfulL Offline
                  Lordful
                  wrote on last edited by
                  #10

                  Solved by using an other sdk build-tools, I installed sdk build-tools 19.1 and I can build now.

                  Next step : Launch emulator and my application on this old mac with 2 GB ram, actually, 1.80GB are used. It will be funny :D

                  1 Reply Last reply
                  0
                  • Pablo J. RoginaP Offline
                    Pablo J. RoginaP Offline
                    Pablo J. Rogina
                    wrote on last edited by
                    #11

                    Glad you solved it, please don't forget to change the post status accordingly. On the emulator side... be patient!

                    Upvote the answer(s) that helped you solve the issue
                    Use "Topic Tools" button to mark your post as Solved
                    Add screenshots via postimage.org
                    Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                    LordfulL 1 Reply Last reply
                    0
                    • Pablo J. RoginaP Pablo J. Rogina

                      Glad you solved it, please don't forget to change the post status accordingly. On the emulator side... be patient!

                      LordfulL Offline
                      LordfulL Offline
                      Lordful
                      wrote on last edited by Lordful
                      #12

                      @Pablo-J.-Rogina As I said ... it was to simple to be true :D

                      First, I can't launch an emulator, I guess that It's because I don't have a lot of RAM.

                      Second, I tried to use a smartphone ... one more time, Android have a problem because Qt can't find my device even after installing a specific driver.

                      I found a solution, it's to add manually the smartphone to adb and then, kill-server and restart the adb server. That's where is the problem because I can't do anything with adb without receive :

                      Illegal Instruction : 4
                      

                      So, I change the version of plateform-tools but this time, the problem is still present ...

                      I didn't like Android and I'm still not starting to like it right now ... :D

                      SOLUTION : Download an older platform-tools and replace the folder by the download folder.

                      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
                      • Unsolved