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. App run problems with Android 3.0 device with Qt versions 5.1.0 and 5.1.1
Forum Updated to NodeBB v4.3 + New Features

App run problems with Android 3.0 device with Qt versions 5.1.0 and 5.1.1

Scheduled Pinned Locked Moved Mobile and Embedded
7 Posts 2 Posters 2.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.
  • francescmmF Offline
    francescmmF Offline
    francescmm
    wrote on last edited by
    #1

    Hi all,

    I develop some apps to Android using Qt and run it in a Nexus S (Android 4.1.2) without problems. The problem has come when I have tried to deploy the application in a Acer A500 tablet, that has installed Android 3.0.1.

    I have installed Ministro and in both places it downloads all libraries. The problem appears when I execute the application from it: packaging successful, deploying successful, but the applciation crashes when is executed.

    The application output is the following:

    @E/dalvikvm( 2620): Can't open dex cache '/data/dalvik-cache/data@data@org.kde.necessitas.ministro@files@dl@0@stable@jar@QtAndroid.jar@classes.dex': No such file or directory
    I/dalvikvm( 2620): Unable to open or create cache for /data/data/org.kde.necessitas.ministro/files/dl/0/stable/jar/QtAndroid.jar (/data/dalvik-cache/data@data@org.kde.necessitas.ministro@files@dl@0@stable@jar@QtAndroid.jar@classes.dex)
    W/System.err( 2620): java.lang.ClassNotFoundException: org.qtproject.qt5.android.QtActivityDelegate in loader dalvik.system.DexClassLoader@407334f0
    W/System.err( 2620): at dalvik.system.DexClassLoader.findClass(DexClassLoader.java:240)@

    Any idea why it occurs??

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

      Ok, what is the android api level you are compiling the app with?
      Which gcc version do you use?

      1 Reply Last reply
      0
      • francescmmF Offline
        francescmmF Offline
        francescmm
        wrote on last edited by
        #3

        I'm currently using API 11, that corresponds to Android 3.0 and GCC 4.7, but I also tried with 4.6.

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

          What happens if you choose to pack all libraries into the APK (and not ministro)?

          1 Reply Last reply
          0
          • francescmmF Offline
            francescmmF Offline
            francescmm
            wrote on last edited by
            #5

            The problem I have when I try to pack all libraries into the APK using Qt Creator is the following:

            @
            Error while building/deploying project ProbaQt5 (kit: Android for arm (GCC 4.6, Qt 5.1.1))
            When executing step 'Deploy to Android device'
            @

            I know it doesn't gives a lot of information. I'm certainly lost at this moment.

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

              Could you show the complete compile log (with bundle in APK) or is that everything?

              1 Reply Last reply
              0
              • francescmmF Offline
                francescmmF Offline
                francescmm
                wrote on last edited by
                #7

                Sorry for my delay answering, but I have been working with other issues.

                Log I set is all information that I have. I think that it have to be a problem of version and target, because with Nexus S is there no problems.

                I tried with both Necessitas SDK and Qt 5.1.1 and there's no solution.

                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