Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-19895

Cannot build Android APK when using the subdirs template

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Need More Info
    • Priority: P2: Important
    • Resolution: Incomplete
    • Affects Version/s: Qt Creator 4.5.0, Qt Creator 4.6.1
    • Fix Version/s: None
    • Component/s: Android Support
    • Environment:
      Arch Linux
      macOS 10.13 host

      Description

      I'm trying to build the project which includes an external library (that's why subdirs template is used). On Linux platform all is OK, but when I try to build Android APK the following error is occured:

      No application .pro file found, not building an APK.

      After googling the issue, I had found two possible reasons of the problem:
      1. There is no *.pro file by the expected path.
      2. There is no *.json file by the expected path.

      Then I tried to manually run the androiddeployqt command (the make command finished normally, and the android-build folder already exists):

      /opt/Qt/5.10.1/android_armv7/bin/androiddeployqt --input ./myproject/android-libmyproject.so-deployment-settings.json --output android-build --deployment bundled --android-platform android-25 --jdk /usr/lib/jvm/java-8-openjdk --gradle

       The build was completed successfully and the external library was bundled into the APK.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              portale Alessandro Portale
              Reporter:
              renom renom
            • Votes:
              6 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes