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. Cannot build apk or even deploy

Cannot build apk or even deploy

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
7 Posts 3 Posters 1.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.
  • E Offline
    E Offline
    echo55
    wrote on last edited by
    #1

    Hi guys,
    I'm on windows , when i try to build my android app i have this error :

    Installing to device failed!
    15:02:22: The process "C:/Qt/5.12.2/android_x86/bin/androiddeployqt.exe" exited with code 16.
    adb: failed to stat C:/Users/fabie/Documents/build-iVactis-Android_for_x86_Clang_Qt_5_12_2_for_Android_x86-Profile/android-build//build/outputs/apk/android-build-debug.apk: No such file or directory
    

    I tried many workaround like disabling APK build ( if i do i have the error above and if i don't i got Execution failed for task ':compileDebugAidl'. )
    or changing android version 24 - 25 - 26 -27 - 28

    i also have this written in red

    > java.io.IOException: com.android.ide.common.process.ProcessException: Error while executing process C:\Users\fabie\AppData\Local\Android\Sdk\build-tools\29.0.0-rc1\aidl.exe with arguments {-pC:\Users\fabie\AppData\Local\Android\Sdk\platforms\android-27\framework.aidl -oC:\Users\fabie\Documents\build-iVactis-Android_for_x86_Clang_Qt_5_12_2_for_Android_x86-Profile\android-build\build\generated\source\aidl\debug -IC:\Users\fabie\Documents\build-iVactis-Android_for_x86_Clang_Qt_5_12_2_for_Android_x86-Profile\android-build\src -IC:\Qt\5.12.2\android_x86\src\android\java\src -IC:\Users\fabie\Documents\build-iVactis-Android_for_x86_Clang_Qt_5_12_2_for_Android_x86-Profile\android-build\aidl -IC:\Users\fabie\Documents\build-iVactis-Android_for_x86_Clang_Qt_5_12_2_for_Android_x86-Profile\android-build\src\debug\aidl -dC:\Users\fabie\AppData\Local\Temp\aidl2123399118576890321.d C:\Qt\5.12.2\android_x86\src\android\java\src\org\kde\necessitas\ministro\IMinistro.aidl}
    

    Thank you .

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

      Hi,

      Which version of the NDK are you using ?

      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
      • E Offline
        E Offline
        echo55
        wrote on last edited by
        #3

        SDK Version : 26.1.1 , NDK Version : 19.2.5345600
        and JDK 1.8.0_201 ( i tried more recent one but i doesn't work anymore after)

        1 Reply Last reply
        0
        • E Offline
          E Offline
          echo55
          wrote on last edited by
          #4

          I still don't know how to fix that ...
          It's pretty annoying

          1 Reply Last reply
          0
          • EDDragonWolfE Offline
            EDDragonWolfE Offline
            EDDragonWolf
            wrote on last edited by EDDragonWolf
            #5

            Had the same issue. Looks like Android Build Tools 29 has some issues. Try to remove Android SDK Build-Tools 29-rc-1 (Options->Devices->Android->SDK Manager), install another Android SDK Build-Tools (I used 28) and remove .pro.user file of your project. Then reconfigure project and build again. For me, it helped.

            1 Reply Last reply
            0
            • E Offline
              E Offline
              echo55
              wrote on last edited by
              #6

              Yes it actually works but only for x86 clang
              My phone can use only the two others arm64 and armeabi
              The problem is that when i deploy using these architecture qt force the install of SDK Build-Tools 29-rc-1 and use it.

              How do i say to qt to not use this version of SDK Build tools ?

              thank you

              1 Reply Last reply
              0
              • E Offline
                E Offline
                echo55
                wrote on last edited by
                #7

                Do someone know ? please

                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