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. [Solved] Unable to run on android using Qt 5.4
Forum Updated to NodeBB v4.3 + New Features

[Solved] Unable to run on android using Qt 5.4

Scheduled Pinned Locked Moved Mobile and Embedded
15 Posts 2 Posters 12.3k 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.
  • deleted57D Offline
    deleted57D Offline
    deleted57
    wrote on last edited by
    #6

    Hi
    Final .apk file created is basically a rar file. Try to rename extension to .rar and open with some tool like 7zip for check the content. Qt libraries are under "libs" folder, if you don't find it this mean there is some problem in apk packaging.

    1 Reply Last reply
    0
    • niqtN Offline
      niqtN Offline
      niqt
      wrote on last edited by
      #7

      Hi,
      in the lib/armeabi-v7a directory i have all the libs... I don't understant what happen...

      1 Reply Last reply
      0
      • deleted57D Offline
        deleted57D Offline
        deleted57
        wrote on last edited by
        #8

        Hi
        The error you experiment is the same of mine? Please note in my case it seem the android runtime was looking for an "inexistent" library since the library name label was empty.

        1 Reply Last reply
        0
        • niqtN Offline
          niqtN Offline
          niqt
          wrote on last edited by
          #9

          My error:
          W/System.err(10397): java.lang.ClassNotFoundException: android.graphics.drawable.RippleDrawable
          W/System.err(10397): at java.lang.Class.classForName(Native Method)
          W/System.err(10397): at java.lang.Class.forName(Class.java:217)
          W/System.err(10397): at java.lang.Class.forName(Class.java:172)
          W/System.err(10397): at org.qtproject.qt5.android.ExtractStyle.getClass(ExtractStyle.java:396)
          W/System.err(10397): at org.qtproject.qt5.android.ExtractStyle.<init>(ExtractStyle.java:100)
          W/System.err(10397): at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:438)
          W/System.err(10397): at java.lang.reflect.Method.invokeNative(Native Method)
          W/System.err(10397): at java.lang.reflect.Method.invoke(Method.java:511)
          W/System.err(10397): at org.qtproject.qt5.android.bindings.QtActivity.loadApplication(QtActivity.java:245)
          W/System.err(10397): at org.qtproject.qt5.android.bindings.QtActivity.startApp(QtActivity.java:655)
          ...
          ...

          and doesn't found, randomly, same module.

          1 Reply Last reply
          0
          • deleted57D Offline
            deleted57D Offline
            deleted57
            wrote on last edited by
            #10

            As you can read from my first posts here this error (java.lang.ClassNotFoundException: android.graphics.drawable.RippleDrawable) it isn't critical since it happen using standard Qt examples too. Basically RippleDrawableis a class introduced in android 5, in all older version this error came up but the app start equally than is not the problem.

            1 Reply Last reply
            0
            • niqtN Offline
              niqtN Offline
              niqt
              wrote on last edited by
              #11

              The my problem is that doesn't find the library when i deploy the lib in the apk (but if i unzip i see them).

              1 Reply Last reply
              0
              • deleted57D Offline
                deleted57D Offline
                deleted57
                wrote on last edited by
                #12

                ok but from what you deduce the problem is library not found? The error you reported is not connected to your supposition...

                1 Reply Last reply
                0
                • niqtN Offline
                  niqtN Offline
                  niqt
                  wrote on last edited by
                  #13

                  I have this supposition (maybe i'm wrong) because if i build in other way (deploy in temporary dir) it run

                  1 Reply Last reply
                  0
                  • deleted57D Offline
                    deleted57D Offline
                    deleted57
                    wrote on last edited by
                    #14

                    Sorry I don't know how to help you. Without additional information is very hard to figure out the problem. Maybe a full reinstallation of all could be a try.

                    1 Reply Last reply
                    0
                    • niqtN Offline
                      niqtN Offline
                      niqt
                      wrote on last edited by
                      #15

                      I reinstalled, tried also on OSX, nothing on Android. However thanks

                      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