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 deploy error after add manifest file.

Android deploy error after add manifest file.

Scheduled Pinned Locked Moved Mobile and Embedded
12 Posts 4 Posters 8.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.
  • M Offline
    M Offline
    Milovidov
    wrote on last edited by
    #1

    I have project that I successfully deployed to Android device without manifest.
    But, after I add manifest via wizard, I recieving next error during deploy:

    Cannot find android sources in C:/job/Actoo/ActooGui/ActooGui/android23:28:06: The process "C:\Qt\5.3\android_armv7\bin\androiddeployqt.exe" exited with code 11.
    Error while building/deploying project ActooProject (kit: Android for armeabi-v7a (GCC 4.8, Qt 5.3.1))
    When executing step "Deploy to Android device"

    I have Windows 7 64 bit, Qt 5.3.1, Qt Creator 3.2.0, jdk-8u20, sdk - adt-bundle-x86_64-20140702, ndk - r10.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Milovidov
      wrote on last edited by
      #2

      Ok, this is a bug.
      Qt Creator generated file android-libActooGui.so-deployment-settings.json, where source dir setted with duplicate ActooGui:
      @"android-package-source-directory": "C:/job/Actoo/ActooGui/ActooGui/android"@
      but must be
      @"android-package-source-directory": "C:/job/Actoo/ActooGui/android"@

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

        Hi,

        Can you reproduce it with a default project ?

        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
        • T Offline
          T Offline
          topocc
          wrote on last edited by
          #4

          compile opencv static,

          QDir::relative path, result path.

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

            [quote author="topocc" date="1409617576"]compile opencv static,

            QDir::relative path, result path.[/quote]

            What does it have to do with the current question ?

            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
            • M Offline
              M Offline
              Milovidov
              wrote on last edited by
              #6

              [quote author="SGaist" date="1409524918"]Hi,

              Can you reproduce it with a default project ?[/quote]

              Sorry for delay!

              With default project problem not exist.

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

                It might not be the fastest solution, but you could bring the content of your non-working project in the new working one to see if it works.

                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
                • M Offline
                  M Offline
                  Milovidov
                  wrote on last edited by
                  #8

                  [quote author="SGaist" date="1410116564"]It might not be the fastest solution, but you could bring the content of your non-working project in the new working one to see if it works.[/quote]
                  For me better just edit android-libActooGui.so-deployment-settings.json file.
                  May be will try in future debug android deployment qt utility and will find where and why appears wrong duplicate.

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    DanielMunoz
                    wrote on last edited by
                    #9

                    Does anyone knows a workaround for this bug other than editing the .json by hand everytime you want to deploy?

                    (What would it mean to reproduce it with a default project?)

                    1 Reply Last reply
                    0
                    • D Offline
                      D Offline
                      DanielMunoz
                      wrote on last edited by
                      #10

                      Does anyone knows a workaround for this bug other than editing the .json by hand everytime you want to deploy?

                      (What would it mean to reproduce it with a default project?)

                      1 Reply Last reply
                      0
                      • D Offline
                        D Offline
                        DanielMunoz
                        wrote on last edited by
                        #11

                        Found it!

                        I must edit my .pro file in this line that the wizard added:
                        ANDROID_PACKAGE_SOURCE_DIR = $$PWD/<Project name>/android

                        And remove the project name leaving just:
                        ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android

                        All done.

                        1 Reply Last reply
                        0
                        • D Offline
                          D Offline
                          DanielMunoz
                          wrote on last edited by
                          #12

                          Found it!

                          I must edit my .pro file in this line that the wizard added:
                          ANDROID_PACKAGE_SOURCE_DIR = $$PWD/<Project name>/android

                          And remove the project name leaving just:
                          ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android

                          All done.

                          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