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

Vuforia plugin - Black screen, camera doesn't start #982

Closed
mcloots opened this issue Sep 1, 2024 · 1 comment
Closed

Vuforia plugin - Black screen, camera doesn't start #982

mcloots opened this issue Sep 1, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@mcloots
Copy link

mcloots commented Sep 1, 2024

I created a Unity project with the Vuforia plugin configured (ARCamera, ImageTarget). I did the export to flutter. When I run the Flutter application everything starts but I get a black screen where my camera is supposed to work.

A unity project without Vuforia works fine btw!

Below the only error I see in the logs.

Any ideas?

E/Unity ( 6186): java.lang.NoClassDefFoundError: Failed resolution of: Landroid/window/OnBackInvokedCallback;
E/Unity ( 6186): at java.lang.reflect.Executable.getMethodReturnTypeInternal(Native Method)
E/Unity ( 6186): at java.lang.reflect.Method.getReturnType(Method.java:148)
E/Unity ( 6186): at java.lang.Class.getDeclaredMethods(Class.java:2728)
E/Unity ( 6186): at com.unity3d.player.ReflectionHelper.getMethodID(Unknown Source:100)
E/Unity ( 6186): at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
E/Unity ( 6186): at com.unity3d.player.UnityPlayer.-$$Nest$mnativeRender(Unknown Source:0)
E/Unity ( 6186): at com.unity3d.player.UnityPlayer$F$a.handleMessage(Unknown Source:122)
E/Unity ( 6186): at android.os.Handler.dispatchMessage(Handler.java:102)
E/Unity ( 6186): at android.os.Looper.loopOnce(Looper.java:233)
E/Unity ( 6186): at android.os.Looper.loop(Looper.java:344)
E/Unity ( 6186): at com.unity3d.player.UnityPlayer$F.run(Unknown Source:24)
E/Unity ( 6186): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.window.OnBackInvokedCallback" on path: DexPathList[[zip fil

@timbotimbo timbotimbo added the duplicate This issue or pull request already exists label Sep 1, 2024
@timbotimbo
Copy link
Collaborator

See this issue. This is caused by a change in Flutter 3.22 triggering a Unity issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants