java.lang.NoSuchMethodException: setService [class android.app.Service, class java.lang.Object]

Qt Bug Tracker | Christian Kaiser | 5 months ago
  1. 0

    Attempting to use QMediaPlayer to play an ogg vorbis (or mp3) results in no media playback and this error: {panel} D/Qt MediaPlayer( 3297): Attempt to invoke virtual method 'android.content.ContentResolver android.content.Context.getContentResolver()' on a null object reference {panel} Related to this, this error appears on initialization when adding "multimedia" dependency. From what I can gather, it occurs when the QtMultimediaUtils are added to the {{android.app.static_init_classes}}. {panel} W/System.err( 3297): java.lang.NoSuchMethodException: setService [class android.app.Service, class java.lang.Object] W/System.err( 3297): at java.lang.Class.getMethod(Class.java:664) W/System.err( 3297): at java.lang.Class.getMethod(Class.java:643) W/System.err( 3297): at org.qtproject.qt5.android.QtServiceDelegate.loadApplication(QtServiceDelegate.java:127) W/System.err( 3297): at java.lang.reflect.Method.invoke(Native Method) W/System.err( 3297): at java.lang.reflect.Method.invoke(Method.java:372) W/System.err( 3297): at org.qtproject.qt5.android.bindings.QtLoader.loadApplication(QtLoader.java:237) W/System.err( 3297): at org.qtproject.qt5.android.bindings.QtLoader.startApp(QtLoader.java:647) W/System.err( 3297): at org.qtproject.qt5.android.bindings.QtServiceLoader.onCreate(QtServiceLoader.java:60) W/System.err( 3297): at org.qtproject.qt5.android.bindings.QtService.onCreate(QtService.java:57) W/System.err( 3297): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2761) W/System.err( 3297): at android.app.ActivityThread.access$1800(ActivityThread.java:151) W/System.err( 3297): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1386) W/System.err( 3297): at android.os.Handler.dispatchMessage(Handler.java:102) W/System.err( 3297): at android.os.Looper.loop(Looper.java:135) W/System.err( 3297): at android.app.ActivityThread.main(ActivityThread.java:5254) W/System.err( 3297): at java.lang.reflect.Method.invoke(Native Method) W/System.err( 3297): at java.lang.reflect.Method.invoke(Method.java:372) W/System.err( 3297): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) W/System.err( 3297): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) {panel} I've attached a minimal example of this in action.

    Qt Bug Tracker | 5 months ago | Christian Kaiser
    java.lang.NoSuchMethodException: setService [class android.app.Service, class java.lang.Object]
  2. 0

    Сборка ядра Android 4.4.x (KitKat) / 5.x.x(Lollipop) / 6.x.x (Marshmallow) для процессоров MTK - 4PDA

    4pda.ru | 8 months ago
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.browser/com.android.browser.BrowserActivity}: android.util.AndroidRuntimeException: java.lang.RuntimeException: Invalid reflection
  3. 0

    Copying database to SD card (java.lang.IllegalStateException)

    Stack Overflow | 2 years ago | Kreyah
    java.lang.NoSuchMethodException: CopyDatabase [class android.view.View]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.IllegalStateException: Could not find a method after Parse implementation

    Stack Overflow | 2 years ago | shaqed
    java.lang.NoSuchMethodException: listOfNoobs [class android.view.View]
  6. 0

    Android Studios Maps not running

    Stack Overflow | 2 years ago | Sarvagya Gupta
    java.lang.NoSuchMethodException: onClick_Surrey [class android.view.View]

  1. davidvanlaatum 8 times, last 2 days ago
  2. filpgame 1 times, last 5 days ago
  3. bmacedo 3 times, last 2 weeks ago
  4. kjhdofjosvs 4 times, last 1 month ago
  5. eti22 1 times, last 1 month ago
42 more registered users
32 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NoSuchMethodException

    setService [class android.app.Service, class java.lang.Object]

    at java.lang.Class.getMethod()
  2. Java RT
    Class.getMethod
    1. java.lang.Class.getMethod(Class.java:664)
    2. java.lang.Class.getMethod(Class.java:643)
    2 frames
  3. org.qtproject.qt5
    QtServiceDelegate.loadApplication
    1. org.qtproject.qt5.android.QtServiceDelegate.loadApplication(QtServiceDelegate.java:127)
    1 frame
  4. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  5. org.qtproject.qt5
    QtService.onCreate
    1. org.qtproject.qt5.android.bindings.QtLoader.loadApplication(QtLoader.java:237)
    2. org.qtproject.qt5.android.bindings.QtLoader.startApp(QtLoader.java:647)
    3. org.qtproject.qt5.android.bindings.QtServiceLoader.onCreate(QtServiceLoader.java:60)
    4. org.qtproject.qt5.android.bindings.QtService.onCreate(QtService.java:57)
    4 frames
  6. Android Platform
    ActivityThread.main
    1. android.app.ActivityThread.handleCreateService(ActivityThread.java:2761)
    2. android.app.ActivityThread.access$1800(ActivityThread.java:151)
    3. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1386)
    4. android.os.Handler.dispatchMessage(Handler.java:102)
    5. android.os.Looper.loop(Looper.java:135)
    6. android.app.ActivityThread.main(ActivityThread.java:5254)
    6 frames
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  8. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
    2 frames