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

NoSuchMethodException: QtBluetoothBroadcastReceiver on Android 10

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.15.1
    • Fix Version/s: 5.15.2
    • Labels:
      None
    • Environment:
      Android 10, Samsung S20 Ultra
    • Platform/s:
      Android

      Description

      When running the "lowenergyscanner" example the following error is printed out:

      
      E Zygote  : isWhitelistProcess - Process is Whitelisted
      E Zygote  : accessInfo : 1
      I project.exampl: Late-enabling -Xcheck:jni
      E project.exampl: Unknown bits set in runtime_flags: 0x8000
      D ActivityThread: setConscryptValidator
      D ActivityThread: setConscryptValidator - put
      W System  : ClassLoader referenced unknown path:
      D PhoneWindow: forceLight changed to true [] from com.android.internal.policy.PhoneWindow.updateForceLightNavigationBar:4274 com.android.internal.policy.DecorView.updateColorViews:1547 com.android.internal.policy.PhoneWindow.dispatchWindowAttributesChanged:3252 android.view.Window.setFlags:1153 com.android.internal.policy.PhoneWindow.generateLayout:2474
      I MultiWindowDecorSupport: [INFO] isPopOver = false
      I MultiWindowDecorSupport: updateCaptionType >> DecorView@3c2df86[], isFloating: false, isApplication: true, hasWindowDecorCaption: false, hasWindowControllerCallback: true
      D MultiWindowDecorSupport: setCaptionType = 0, DecorView = DecorView@3c2df86[]
      W System.err: java.lang.NoSuchMethodException: org.qtproject.qt5.android.bluetooth.QtBluetoothBroadcastReceiver.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:7963)
      W System.err: 	at android.app.Activity.performCreate(Activity.java:7952)
      W System.err: 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1307)
      W System.err: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3629)
      W System.err: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3806)
      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:2267)
      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:8154)
      W System.err: 	at java.lang.reflect.Method.invoke(Native Method)
      W System.err: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
      W System.err: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
      I QtCore  : Start
      I Qt      : qt started
      D NativeCustomFrequencyManager: [NativeCFMS] BpCustomFrequencyManager::BpCustomFrequencyManager()
      I ViewRootImpl@6af28ca[QtActivity]: setView = com.android.internal.policy.DecorView@3c2df86 TM=true MM=false
      I ViewRootImpl@6af28ca[QtActivity]: Relayout returned: old=(0,0,1080,2400) new=(0,0,1080,2400) req=(1080,2400)0 dur=4 res=0x7 s={true 3635318784} ch=true
      D OpenGLRenderer: createReliableSurface : 0xd8a8ff00(0xd8ae9000)
      I AdrenoGLES-0: QUALCOMM build                   : 48175c6, I33ebe07a9a
      I AdrenoGLES-0: Build Date                       : 07/27/20
      I AdrenoGLES-0: OpenGL ES Shader Compiler Version: EV031.29.00.09
      I AdrenoGLES-0: Local Branch                     :
      I AdrenoGLES-0: Remote Branch                    : refs/tags/AU_LINUX_ANDROID_LA.UM.8.12.C1.10.00.00.649.113
      I AdrenoGLES-0: Remote Branch                    : NONE
      I AdrenoGLES-0: Reconstruct Branch               : NOTHING
      I AdrenoGLES-0: Build Config                     : S P 8.0.12 AArch32
      I AdrenoGLES-0: Driver Path                      : /vendor/lib/egl/libGLESv2_adreno.so
      I AdrenoGLES-0: PFP: 0x016dd087, ME: 0x00000000
      D OpenGLRenderer: makeCurrent EglSurface : 0x0 -> 0x0
      D OpenGLRenderer: eglCreateWindowSurface : 0xeb08ff00
      D OpenGLRenderer: makeCurrent EglSurface : 0x0 -> 0xeb08ff00
      D OpenGLRenderer: GPIS:: SetUp Pid : 4890    Tid : 5881
      I ViewRootImpl@6af28ca[QtActivity]: MSG_WINDOW_FOCUS_CHANGED 1 1
      D InputMethodManager: prepareNavigationBarInfo() DecorView@3c2df86[QtActivity]
      D InputMethodManager: getNavigationBarColor() -855310
      D InputMethodManager: prepareNavigationBarInfo() DecorView@3c2df86[QtActivity]
      D InputMethodManager: getNavigationBarColor() -855310
      V InputMethodManager: Starting input: tba=org.qtproject.example ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
      D InputMethodManager: startInputInner - Id : 0
      I InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
      I ViewRootImpl@6af28ca[QtActivity]: MSG_RESIZED: frame=(0,0,1080,2400) ci=(0,74,0,126) vi=(0,74,0,126) or=1
      D InputMethodManager: prepareNavigationBarInfo() DecorView@3c2df86[QtActivity]
      D InputMethodManager: getNavigationBarColor() -855310
      V InputMethodManager: Starting input: tba=org.qtproject.example ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
      D InputMethodManager: startInputInner - Id : 0
      D InputMethodManager: HSIFW - flag : 0
      I InputMethodManager: hideSoftInputFromWindow ignore mServedView == null or mServedView.getWindowToken() != windowToken, mServedView :DecorView@3c2df86[QtActivity]
      I SurfaceView: onWindowVisibilityChanged(0) true org.qtproject.qt5.android.QtSurface{bcb587a V.E...... ......I. 0,0-0,0 #1} of ViewRootImpl@6af28ca[QtActivity]
      I ViewRootImpl@6af28ca[QtActivity]: Relayout returned: old=(0,0,1080,2400) new=(0,0,1080,2400) req=(1080,2400)0 dur=3 res=0x1 s={true 3635318784} ch=false
      I SurfaceView: surfaceCreated 1 #8 org.qtproject.qt5.android.QtSurface{bcb587a V.E...... ......ID 0,0-1080,2200 #1}
      I SurfaceView: surfaceChanged (1080,2200) 1 #8 org.qtproject.qt5.android.QtSurface{bcb587a V.E...... ......ID 0,0-1080,2200 #1}
      I OpenGLRenderer: doUpdatePositionAsync is called and callVoidMethod
      I ViewRootImpl@6af28ca[QtActivity]: ViewPostIme pointer 0
      I ViewRootImpl@6af28ca[QtActivity]: ViewPostIme pointer 1
      W liblowenergyscanner_armeabi-v7a.so: qt.bluetooth.android: ACCESS_COARSE|FINE_LOCATION permission available
      D BluetoothAdapter: STATE_ON
      D QtBluetoothGatt: New BTLE scanning API
      D BluetoothAdapter: STATE_ON
      D BluetoothAdapter: STATE_ON
      D BluetoothAdapter: BLE support array set: 111111
      D BluetoothLeScanner: Start Scan with callback
      D BluetoothLeScanner: onScannerRegistered() - status=0 scannerId=8 mScannerId=0
      D BluetoothAdapter: STATE_ON
      D BluetoothLeScanner: Stop Scan with callback
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              ablasche Alex Blasche
              Reporter:
              DanielSt Peter Staab
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes