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. Qt 5.1 and Android unable to start 'org.qtproject.example.myFirstAndroidApp'
Forum Updated to NodeBB v4.3 + New Features

Qt 5.1 and Android unable to start 'org.qtproject.example.myFirstAndroidApp'

Scheduled Pinned Locked Moved Mobile and Embedded
25 Posts 6 Posters 21.4k 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
    Moster
    wrote on last edited by
    #15

    I have only tested this stuff on linux (ubuntu 12.04 and 13.04), talking about qtcreator. For me it runs great. What do you use?

    I guess usb debugging is turned on, otherwise it would try to start the emulator

    Maybe check adb logcat if it says more than qtcreator

    1 Reply Last reply
    0
    • N Offline
      N Offline
      niks_android
      wrote on last edited by
      #16

      I am using Qt Creator 2.7.2 based on Qt 5.1.0 on Windows7 32-bit OS.
      Yes, USB debugging is ON (I think that is a mandate)

      Firstly i want to make it work on the emulator.
      On that too, it displays the same error and black screen.

      AVD Manager settings: Data partition size: 1024 Mb
      AVD Target: API17
      CPU/ABI: armeabi-v7a

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Moster
        wrote on last edited by
        #17

        What does "adb logcat" say when you try to run the app?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andrea993.93
          wrote on last edited by
          #18

          Moster, which api Level do you use?

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Moster
            wrote on last edited by
            #19

            17, since my devices run on 4.2.1 and 4.2.2, but Im using linux, since the windows version is supposed to be less stable

            1 Reply Last reply
            0
            • N Offline
              N Offline
              niks_android
              wrote on last edited by
              #20

              Moster,

              adb logcat shows the following error on start of application:

              E/Qt ( 1469): Can't create main activity
              E/Qt ( 1469): java.io.FileNotFoundException: /data/data/org.qtproject.example.Sample/lib/lib--Managed_by_Qt_Creator--plugins_platforms_android_libqtforandroid.so: open failed: ENOENT (No such file or directory)

              1 Reply Last reply
              0
              • M Offline
                M Offline
                Moster
                wrote on last edited by
                #21

                What are your deploy configurations?

                1 Reply Last reply
                0
                • N Offline
                  N Offline
                  niks_android
                  wrote on last edited by
                  #22

                  Use Qt libraries from device - checked
                  Use local Qt Libraries - checked
                  Rest unchecked.

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    Moster
                    wrote on last edited by
                    #23

                    Do you have a chance to test it on linux?

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      steno
                      wrote on last edited by
                      #24

                      I'm experiencing the same problem. However, during the deploy step i notice when it tries to install the apk to the emulator, it spits out the following error. This is on windows with almost the same setup.

                      Error: Could not access the Package Manager. Is the system running?

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        steno
                        wrote on last edited by
                        #25

                        So, I fixed my problem. One I didn't have the emulator using the host gpu. Second, I wasn't giving the emulator enough time to boot up.

                        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