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

[Android] NoSuchMethodException when using QtMultimedia

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.15.1
    • Fix Version/s: 5.15.2
    • Component/s: Extras: Android
    • Labels:
      None
    • Platform/s:
      Android
    • Commits:
      950e628fd842f22ac741b18440fcc99213820587 (qt/qtbase/dev) 46a12ef0c33893d1864f9a6c8b25b37a5976803b (qt/qtbase/5.15.2) 4766a7a62b11c932f483724294aca5b69d2c0194 (qt/qtbase/5.15)

      Description

      Create a new Qt Quick app. Add import QtMultimedia 5.15 to main.qml. Run it and you get:

      I mple.untitled3: Late-enabling -Xcheck:jni
      E mple.untitled3: Unknown bits set in runtime_flags: 0x8000
      D ActivityThread: setConscryptValidator
      D ActivityThread: setConscryptValidator - put
      W System  : ClassLoader referenced unknown path:
      I MultiWindowDecorSupport: updateCaptionType >> DecorView@4f392ad[], isFloating: false, isApplication: true, hasWindowDecorCaption: false, hasWindowControllerCallback: true
      D MultiWindowDecorSupport: setCaptionType = 0, DecorView = DecorView@4f392ad[]
      W System.err: java.lang.NoSuchMethodException: org.qtproject.qt5.android.multimedia.QtMultimediaUtils.setActivity [class android.app.Activity, class java.lang.Object]
      W System.err: 	at java.lang.Class.getMethod(Class.java:2072)
      W System.err: 	at java.lang.Class.getMethod(Class.java:1693)
      W System.err: 	at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:586)
      W System.err: 	at java.lang.reflect.Method.invoke(Native Method)
      W System.err: 	at org.qtproject.qt5.android.bindings.QtLoader.loadApplication(QtLoader.java:267)
      W System.err: 	at org.qtproject.qt5.android.bindings.QtLoader.startApp(QtLoader.java:505)
      W System.err: 	at org.qtproject.qt5.android.bindings.QtActivityLoader.onCreate(QtActivityLoader.java:166)
      W System.err: 	at org.qtproject.qt5.android.bindings.QtActivity.onCreateHook(QtActivity.java:267)
      W System.err: 	at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:274)
      W System.err: 	at android.app.Activity.performCreate(Activity.java:7955)
      W System.err: 	at android.app.Activity.performCreate(Activity.java:7944)
      W System.err: 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1307)
      W System.err: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3423)
      W System.err: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3595)
      W System.err: 	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
      W System.err: 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
      W System.err: 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
      W System.err: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2147)
      W System.err: 	at android.os.Handler.dispatchMessage(Handler.java:107)
      W System.err: 	at android.os.Looper.loop(Looper.java:237)
      W System.err: 	at android.app.ActivityThread.main(ActivityThread.java:7814)
      W System.err: 	at java.lang.reflect.Method.invoke(Native Method)
      W System.err: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
      W System.err: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1068)
      I QtCore  : Start
      I Qt      : qt started
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              assam Assam Boudjelthia
              Reporter:
              adrian.gabureanu Adrian Gabureanu
              Votes:
              9 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes