Shadow icon indicating copy to clipboard operation
Shadow copied to clipboard

存在转换后被调用方法未实现的问题 getOnBackInvokedDispatcher

Open huasheng0401 opened this issue 10 months ago • 1 comments

Class com.tencent.shadow.core.runtime.ShadowActivity中缺少方法: getOnBackInvokedDispatcher:()Landroid/window/OnBackInvokedDispatcher;被这些类调用了: androidx.appcompat.app.AppCompatDelegateImpl$Api33Impl androidx.activity.ComponentActivity$Api33Impl

huasheng0401 avatar Apr 15 '24 09:04 huasheng0401

Class com.tencent.shadow.core.runtime.ShadowActivity中缺少方法: getOnBackInvokedDispatcher:()Landroid/window/OnBackInvokedDispatcher;被这些类调用了: androidx.appcompat.app.AppCompatDelegateImpl$Api33Impl androidx.activity.ComponentActivity$Api33Impl

这个方法是Android 14 (api 34) 引入的,一般是你项目compilesdkversion 是34 而插件 版本不是34导致的,统一一下版本

dhs964057117 avatar Apr 25 '24 12:04 dhs964057117

非常感谢,按照这个操作解决了 image

huasheng0401 avatar May 17 '24 10:05 huasheng0401