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 APK build error

Android APK build error

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 1.2k Views 1 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.
  • G Offline
    G Offline
    gabor53
    wrote on last edited by
    #1

    Hi,
    When I try to compile I get the following message:
    **17:37:33: The process "C:\Qt\Qt5.11.0\5.11.0\android_armv7\bin\androiddeployqt.exe" exited with code 2.
    Error while building/deploying project Test1 (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.11.0 for Android armv7))
    When executing step "Build Android APK" **

    What is code 2 and how can I fix this?
    Thank you.

    jsulmJ 1 Reply Last reply
    0
    • G gabor53

      Hi,
      When I try to compile I get the following message:
      **17:37:33: The process "C:\Qt\Qt5.11.0\5.11.0\android_armv7\bin\androiddeployqt.exe" exited with code 2.
      Error while building/deploying project Test1 (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.11.0 for Android armv7))
      When executing step "Build Android APK" **

      What is code 2 and how can I fix this?
      Thank you.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @gabor53 What do you see before the lines you posted?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      G 1 Reply Last reply
      0
      • jsulmJ jsulm

        @gabor53 What do you see before the lines you posted?

        G Offline
        G Offline
        gabor53
        wrote on last edited by
        #3

        @jsulm
        I tried to repeat the error instead I got this:
        08:14:04: Running steps for project Test1...
        08:14:04: Configuration unchanged, skipping qmake step.
        08:14:04: Starting: "C:\android-ndk-r17b\prebuilt\windows-x86_64\bin\make.exe"
        make: Nothing to be done for `first'.
        08:14:09: The process "C:\android-ndk-r17b\prebuilt\windows-x86_64\bin\make.exe" exited normally.
        08:14:09: Removing directory C:\Programming\Android\Learn\Test1\Test1\android-build/assets
        08:14:19: Removing directory C:\Programming\Android\Learn\Test1\Test1\android-build/libs
        08:14:20: Starting: "C:\android-ndk-r17b\prebuilt\windows-x86_64\bin\make.exe" "INSTALL_ROOT=C:\Programming\Android\Learn\Test1\Test1\android-build" install
        C:\Qt\Qt5.11.0\5.11.0\android_armv7\bin\qmake.exe -install qinstall -exe libTest1.so C:\Programming\Android\Learn\Test1\Test1\android-build\libs\armeabi-v7a\libTest1.so
        08:14:24: The process "C:\android-ndk-r17b\prebuilt\windows-x86_64\bin\make.exe" exited normally.
        08:14:24: Starting: "C:\Qt\Qt5.11.0\5.11.0\android_armv7\bin\androiddeployqt.exe" --input C:/Programming/Android/Learn/Test1/Test1/android-libTest1.so-deployment-settings.json --output C:/Programming/Android/Learn/Test1/Test1/android-build --android-platform android-28 --jdk "C:/Program Files/Java/jdk1.8.0_162" --gradle
        Generating Android Package
        Input file: C:/Programming/Android/Learn/Test1/Test1/android-libTest1.so-deployment-settings.json
        Output directory: C:/Programming/Android/Learn/Test1/Test1/android-build/
        Application binary: C:/Programming/Android/Learn/Test1/Test1/libTest1.so
        Android build platform: android-28
        Install to device: No
        At this point it stops and doesn't do anything.

        jsulmJ 1 Reply Last reply
        0
        • G gabor53

          @jsulm
          I tried to repeat the error instead I got this:
          08:14:04: Running steps for project Test1...
          08:14:04: Configuration unchanged, skipping qmake step.
          08:14:04: Starting: "C:\android-ndk-r17b\prebuilt\windows-x86_64\bin\make.exe"
          make: Nothing to be done for `first'.
          08:14:09: The process "C:\android-ndk-r17b\prebuilt\windows-x86_64\bin\make.exe" exited normally.
          08:14:09: Removing directory C:\Programming\Android\Learn\Test1\Test1\android-build/assets
          08:14:19: Removing directory C:\Programming\Android\Learn\Test1\Test1\android-build/libs
          08:14:20: Starting: "C:\android-ndk-r17b\prebuilt\windows-x86_64\bin\make.exe" "INSTALL_ROOT=C:\Programming\Android\Learn\Test1\Test1\android-build" install
          C:\Qt\Qt5.11.0\5.11.0\android_armv7\bin\qmake.exe -install qinstall -exe libTest1.so C:\Programming\Android\Learn\Test1\Test1\android-build\libs\armeabi-v7a\libTest1.so
          08:14:24: The process "C:\android-ndk-r17b\prebuilt\windows-x86_64\bin\make.exe" exited normally.
          08:14:24: Starting: "C:\Qt\Qt5.11.0\5.11.0\android_armv7\bin\androiddeployqt.exe" --input C:/Programming/Android/Learn/Test1/Test1/android-libTest1.so-deployment-settings.json --output C:/Programming/Android/Learn/Test1/Test1/android-build --android-platform android-28 --jdk "C:/Program Files/Java/jdk1.8.0_162" --gradle
          Generating Android Package
          Input file: C:/Programming/Android/Learn/Test1/Test1/android-libTest1.so-deployment-settings.json
          Output directory: C:/Programming/Android/Learn/Test1/Test1/android-build/
          Application binary: C:/Programming/Android/Learn/Test1/Test1/libTest1.so
          Android build platform: android-28
          Install to device: No
          At this point it stops and doesn't do anything.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @gabor53 You need to do a rebuild to reproduce

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved