Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-97040

Unable to instantiate QtApplication on Android

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Fixed
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      LG V40 ThinQ with Android 10, Qt Creator 5.0.2, Qt 5.15.2, Ubuntu 20, OpenJDK 8
    • Platform/s:
      Android

      Description

      Project built with 5.15.2 Clang multiAbi with all the default xmls dies immediately. Debug run shows in console:

      E AndroidRuntime: FATAL EXCEPTION: main
      E AndroidRuntime: Process: org.qtproject.example, PID: 28054
      E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate application org.qtproject.qt.android.bindings.QtApplication: java.lang.ClassNotFoundException: Didn't find class "org.qtproject.qt.android.bindings.QtApplication" on path: DexPathList[[zip file "/data/app/org.qtproject.example-KyopXKQHHNxTgDkzN8VxYQ==/base.apk"],nativeLibraryDirectories=[/data/app/org.qtproject.example-KyopXKQHHNxTgDkzN8VxYQ==/lib/arm, /data/app/org.qtproject.example-KyopXKQHHNxTgDkzN8VxYQ==/base.apk!/lib/armeabi-v7a, /system/lib, /system/product/lib]]
      E AndroidRuntime: at android.app.LoadedApk.makeApplication(LoadedApk.java:1231)
      E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6681)
      E AndroidRuntime: at android.app.ActivityThread.access$1300(ActivityThread.java:226)
      E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1898)
      E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:107)
      E AndroidRuntime: at android.os.Looper.loop(Looper.java:214)
      E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7615)
      E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
      E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
      E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)
      E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "org.qtproject.qt.android.bindings.QtApplication" on path: DexPathList[[zip file "/data/app/org.qtproject.example-KyopXKQHHNxTgDkzN8VxYQ==/base.apk"],nativeLibraryDirectories=[/data/app/org.qtproject.example-KyopXKQHHNxTgDkzN8VxYQ==/lib/arm, /data/app/org.qtproject.example-KyopXKQHHNxTgDkzN8VxYQ==/base.apk!/lib/armeabi-v7a, /system/lib, /system/product/lib]]
      E AndroidRuntime: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:196)
      E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
      E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
      E AndroidRuntime: at android.app.AppComponentFactory.instantiateApplication(AppComponentFactory.java:76)
      E AndroidRuntime: at android.app.Instrumentation.newApplication(Instrumentation.java:1156)
      E AndroidRuntime: at android.app.LoadedApk.makeApplication(LoadedApk.java:1223)
      E AndroidRuntime: ... 9 more

       

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            qtandroidteam Qt Android Team
            Reporter:
            bipll bipll
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes