-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
Milestone
Description
I made a testapp using dioxus cli, the most basic one to debug an issue on an older device, and noticed that it does not work. The app immediately crashes.
Using adb logcat i could find this:
FATAL EXCEPTION: Thread-2
Process: com.example.Testapp, PID: 30573
java.lang.NoSuchMethodError: no non-static method "Landroid/view/WindowManagerImpl;.getCurrentWindowMetrics()Landroid/view/WindowMetrics;"
Get current window metrics is not available for Android 9.0 (API 28), it was introduced in API 30
Full log:
12-18 22:45:52.577 30573 30597 E AndroidRuntime: FATAL EXCEPTION: Thread-2
12-18 22:45:52.577 30573 30597 E AndroidRuntime: Process: com.example.Testapp, PID: 30573
12-18 22:45:52.577 30573 30597 E AndroidRuntime: java.lang.NoSuchMethodError: no non-static method "Landroid/view/WindowManagerImpl;.getCurrentWindowMetrics()Landroid/view/WindowMetrics;"
12-18 22:45:52.580 966 7781 W ActivityManager: Force finishing activity com.example.Testapp/dev.dioxus.main.MainActivity
12-18 22:45:52.585 966 7781 I PowerWrap: PowerHal_Wrap_mtkPowerHint
12-18 22:45:52.598 966 986 I ActivityManager: Showing crash dialog for package com.example.Testapp u0
12-18 22:45:52.585 966 7781 I PowerWrap: PowerHal_Wrap_mtkPowerHint
12-18 22:45:52.618 30347 30347 D BoundBrokerSvc: onUnbind: Intent { act=com.google.android.mobstore.service.START pkg=com.google.android.gms }
12-18 22:45:52.631 966 30607 W DropBoxManagerService: Dropping: data_app_crash (319 > 0 bytes)
12-18 22:45:52.633 966 30607 W AES : Exception Log handling...
12-18 22:45:52.633 966 30607 W AES : Skipped - do not care third party apk
12-18 22:45:52.635 966 985 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
12-18 22:45:52.640 966 986 D ViewRootImpl[Testapp]: hardware acceleration = true , fakeHwAccelerated = false, sRendererDisabled = false, forceHwAccelerated = false, sSystemRendererDisabled = false
12-18 22:45:52.649 966 986 V WindowManager: Changing focus from null to Window{90a0cf5 u0 Application Error: com.example.Testapp} Callers=com.android.server.wm.WindowManagerService.addWindow:1519 com.android.server.wm.Session.addToDisplay:205 android.view.ViewRootImpl.setView:783 android.view.WindowManagerGlobal.addView:356
12-18 22:45:52.649 966 986 D WindowManager: Input focus has changed to Window{90a0cf5 u0 Application Error: com.example.Testapp}
12-18 22:45:52.650 966 993 I WindowManager: Focus moving from null to Window{90a0cf5 u0 Application Error: com.example.Testapp}
12-18 22:45:52.657 487 927 I BufferQueue: [unnamed-487-2936](this:0xb0b20000,id:2936,api:0,p:-1,c:-1) BufferQueue core=(487:/system/bin/surfaceflinger)
12-18 22:45:52.657 487 927 I BufferQueueConsumer: [unnamed-487-2936](this:0xb0b20000,id:2936,api:0,p:-1,c:487) connect(C): consumer=(487:/system/bin/surfaceflinger) controlledByApp=false
12-18 22:45:52.657 487 927 I BufferQueueConsumer: [unnamed-487-2936](this:0xb0b20000,id:2936,api:0,p:-1,c:487) setConsumerName: unnamed-487-2936
12-18 22:45:52.657 487 927 I BufferQueueConsumer: [Application Error: com.example.Testapp#0](this:0xb0b20000,id:2936,api:0,p:-1,c:487) setConsumerName: Application Error: com.example.Testapp#0
12-18 22:45:52.657 487 927 I BufferQueueConsumer: [Application Error: com.example.Testapp#0](this:0xb0b20000,id:2936,api:0,p:-1,c:487) setDefaultBufferSize: width=795 height=455
12-18 22:45:52.659 966 986 D Surface : Surface::allocateBuffers(this=0x7deff800)
12-18 22:45:52.659 966 9116 I OpenGLRenderer: Initialized EGL, version 1.4
12-18 22:45:52.659 966 9116 D OpenGLRenderer: Swap behavior 2
12-18 22:45:52.676 17795 30610 E DropBoxUtil: [AppErrors] null InputStream [CONTEXT service_id=254 ]
12-18 22:45:52.676 17795 30610 E DropBoxUtil: java.io.IOException: null InputStream
12-18 22:45:52.676 17795 30610 E DropBoxUtil: at
Reactions are currently unavailable