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. Do not run the application on a real device.
Forum Updated to NodeBB v4.3 + New Features

Do not run the application on a real device.

Scheduled Pinned Locked Moved Mobile and Embedded
8 Posts 2 Posters 1.3k Views 2 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.
  • T Offline
    T Offline
    Trikrista
    wrote on last edited by
    #1

    The application is written with Qt Quik 2.

    If you run an application on a real device using a creator, it works.
    If you move .APK to the device, and start from there, does not work.
    When you start a black screen appears, and then the application is closed.

    What could be the problem?

    I'm sorry for my bad English

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Are you sure you copy the right APK file?

      (Z(:^

      1 Reply Last reply
      0
      • T Offline
        T Offline
        Trikrista
        wrote on last edited by
        #3

        I copy name-debug.apk.

        The program that creates a QtCreator on the device separately, too, does not start

        I'm sorry for my bad English

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          OK, that sounds good.

          And which deployment method do you use (Ministro, bundling Qt libraries, storing Qt libs in temp location)? Any additional, external dependencies?

          (Z(:^

          1 Reply Last reply
          0
          • T Offline
            T Offline
            Trikrista
            wrote on last edited by
            #5

            I use "bundling Qt libraries".

            also to the project added "google-play-services_lib" with help file "project.properties" which is located in the dir "android". It comes from the old versions so nobody touches

            I'm sorry for my bad English

            1 Reply Last reply
            0
            • T Offline
              T Offline
              Trikrista
              wrote on last edited by Trikrista
              #6

              Now In the log is the content:

              W/System.err(25453): java.lang.ClassNotFoundException: android.graphics.drawable.RippleDrawable
              ...
              W/System.err(25453): Caused by: java.lang.NoClassDefFoundError: android/graphics/drawable/AnimatedStateListDrawable
              W/System.err(25453): 	... 26 more
              W/System.err(25453): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.graphics.drawable.AnimatedStateListDrawable" on path: DexPathList[[zip file "/data/app/com.myprog.mcm-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.myprog.mcm-2, /vendor/lib, /system/lib]]
              W/System.err(25453): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
              

              I'm sorry for my bad English

              1 Reply Last reply
              0
              • sierdzioS Offline
                sierdzioS Offline
                sierdzio
                Moderators
                wrote on last edited by
                #7

                Hm, sorry, I don't know what is wrong here.

                (Z(:^

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  Trikrista
                  wrote on last edited by
                  #8

                  The problem was in the outdated files in directory android

                  I'm sorry for my bad English

                  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