Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行起来这里报错是遇到过的问题吗 #24

Open
hjqiaho opened this issue Aug 31, 2022 · 6 comments
Open

运行起来这里报错是遇到过的问题吗 #24

hjqiaho opened this issue Aug 31, 2022 · 6 comments

Comments

@hjqiaho
Copy link

hjqiaho commented Aug 31, 2022

2022-08-31 18:47:36.981 5446-5446/com.android.launcher3 E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.android.launcher3, PID: 5446
java.lang.NoSuchMethodError: No interface method getMaximumWindowMetrics()Landroid/view/WindowMetrics; in class Landroid/view/WindowManager; or its super classes (declaration of 'android.view.WindowManager' appears in /system/framework/framework.jar!classes3.dex)
at com.android.launcher3.util.window.WindowManagerProxy.getRealBounds(WindowManagerProxy.java:131)
at com.android.launcher3.util.DisplayController$Info.(DisplayController.java:327)
at com.android.launcher3.util.DisplayController.(DisplayController.java:120)
at com.android.launcher3.util.DisplayController.$r8$lambda$QjdXHmv721WSoJW-MI-3oZlD7FY(Unknown Source:2)
at com.android.launcher3.util.DisplayController$$ExternalSyntheticLambda0.get(Unknown Source:0)
at com.android.launcher3.util.MainThreadInitializedObject.lambda$get$0$com-android-launcher3-util-MainThreadInitializedObject(MainThreadInitializedObject.java:58)
at com.android.launcher3.util.MainThreadInitializedObject$$ExternalSyntheticLambda2.get(Unknown Source:4)
at com.android.launcher3.util.TraceHelper.allowIpcs(TraceHelper.java:84)
at com.android.launcher3.util.MainThreadInitializedObject.get(MainThreadInitializedObject.java:57)
at com.android.launcher3.InvariantDeviceProfile.initGrid(InvariantDeviceProfile.java:311)
at com.android.launcher3.InvariantDeviceProfile.(InvariantDeviceProfile.java:195)
at com.android.launcher3.InvariantDeviceProfile.$r8$lambda$DNcXzmawjoq65q3wgQi9M48DryY(Unknown Source:2)
at com.android.launcher3.InvariantDeviceProfile$$ExternalSyntheticLambda1.get(Unknown Source:0)
at com.android.launcher3.util.MainThreadInitializedObject.lambda$get$0$com-android-launcher3-util-MainThreadInitializedObject(MainThreadInitializedObject.java:58)
at com.android.launcher3.util.MainThreadInitializedObject$$ExternalSyntheticLambda2.get(Unknown Source:4)
at com.android.launcher3.util.TraceHelper.allowIpcs(TraceHelper.java:84)
at com.android.launcher3.util.MainThreadInitializedObject.get(MainThreadInitializedObject.java:57)
at com.android.launcher3.LauncherAppState.(LauncherAppState.java:143)
at com.android.launcher3.LauncherAppState.(LauncherAppState.java:84)
at com.android.launcher3.LauncherAppState$$ExternalSyntheticLambda4.get(Unknown Source:2)
at com.android.launcher3.util.MainThreadInitializedObject.lambda$get$0$com-android-launcher3-util-MainThreadInitializedObject(MainThreadInitializedObject.java:58)
at com.android.launcher3.util.MainThreadInitializedObject$$ExternalSyntheticLambda2.get(Unknown Source:4)
at com.android.launcher3.util.TraceHelper.allowIpcs(TraceHelper.java:84)
at com.android.launcher3.util.MainThreadInitializedObject.get(MainThreadInitializedObject.java:57)
at com.android.launcher3.LauncherAppState.getInstance(LauncherAppState.java:72)
at com.android.launcher3.Launcher.onCreate(Launcher.java:456)
at android.app.Activity.performCreate(Activity.java:7869)

@yuchuangu85
Copy link
Collaborator

@hjqiaho 这个还没有跑通,因为最近太忙,还没有时间搞。

@yuchuangu85
Copy link
Collaborator

@hjqiaho 由于还没有找到对应的依赖包,现在只能编译withoutquickstep的模式

@hjqiaho
Copy link
Author

hjqiaho commented Sep 3, 2022

@yuchuangu85 编译的是withoutquickstep 我看网上的说法WindowMetrics只能用再android13的设备上,你那边的测试设备系统是多少的 ,我这android10的报错

@hjqiaho
Copy link
Author

hjqiaho commented Sep 3, 2022

image

代码这里少个return貌似

@yuchuangu85
Copy link
Collaborator

@hjqiaho 我用的Android10,现在也正在测试哪些有问题,谷歌没有往下兼容,需要自己处理。

@yuchuangu85
Copy link
Collaborator

@hjqiaho 很多API都是30以上的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants