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

Cannot build Android APK when using the subdirs template

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • Qt Creator 4.5.0, Qt Creator 4.6.1
    • Android Support
    • 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

            portale Alessandro Portale
            renom renom
            Votes:
            6 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes