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. org.qtproject.qt5.android.bindings.QtActivity -- ClassNotFound exception when built with gradle
Forum Update on Monday, May 27th 2025

org.qtproject.qt5.android.bindings.QtActivity -- ClassNotFound exception when built with gradle

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 1 Posters 1.5k Views
  • 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.
  • N Offline
    N Offline
    Nelson_Piquet
    wrote on 16 Oct 2016, 17:45 last edited by
    #1

    I am building my QtApp for android using gradle. The build is successful but when I run my app on device, it gives the following error & crashes

    Caused by: java.lang.ClassNotFoundException: Didn't find class "org.qtproject.qt5.android.bindings.QtActivity" on path: DexPathList[[zip file "/data/app/com.mycompany.myapp-1/base.apk"],nativeLibraryDirectories=[/data/app/com.mycompany.myapp-1/lib/arm, /data/app/com.mycompany.myapp-1/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]

    Can someone point why the error is occurring ? Btw, when built with ant, the app builds & runs fine.

    My AndroidManifest.xml is exactly like below Qt official example:
    http://doc.qt.io/qt-5/qtandroidextras-notification-android-sources-androidmanifest-xml.html

    However, I do not have a launcher activity java class. is it absolutely mandatory to have the java class with launcher activity, when building app with gradle & a AndroidManifest file ?

    1 Reply Last reply
    0
    • N Offline
      N Offline
      Nelson_Piquet
      wrote on 16 Oct 2016, 17:56 last edited by
      #2

      Also, Do I need to set the application name to start the app without crash ?

      1 Reply Last reply
      0
      • N Offline
        N Offline
        Nelson_Piquet
        wrote on 17 Oct 2016, 12:02 last edited by
        #3

        I have posted the question on stackoverflow with more info. In case you guys have some suggestions, pls reply here as well
        http://stackoverflow.com/questions/40084918/building-qtapp-with-gradle-crashes-complaining-unable-to-instantiate-activity

        1 Reply Last reply
        0

        1/3

        16 Oct 2016, 17:45

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved