Topic has a solution and is locked
Topic locked

Black screen on Android phone

August 17, 2021 - 6:46am #1
Topic solved

Hello. I created a Vuforia app which is running perfectly fine on my webcam. When i tried it on my phone, the UI loads but the AR camera is showing black screen. I tried it on Samsung Galaxy A51 (Android version 11) and on Samsung Galaxy A5. The wierd part is that its running completely fine on an older Android phone - LG K9. How can I fix this issue?

AttachmentSize
Image icon 1.jpg3.28 KB

Black screen on Android phone

January 21, 2022 - 4:02am #10

Hey there,

 

There are a few options you could go through to solve the issue. The options would be:

  • Build a 64-bit Unity app
  • Include an older ARCore version
  • Disable ARCore

I wrote a technical article to make it easier to understand the issue and how to solve it.

 

Kind regards,

Patrick Scheper

Technical Community Manager

Black screen on Android phone

January 20, 2022 - 6:39am #9

I tried ahmedpasics solution - but then I get the message:



"ARMv7 is not compatible with the ARCore version included when using the "Include ARCore Library" option in the VuforiaConfiguration. To use an older version of ARCore which supports ARMv7, please include ARCore manually in your project instead."



When I read the manual about how to include arcore manually - the versions are really old and it seems like an outdated solution?



What am I missing here?

Black screen on Android phone

December 31, 2021 - 5:38am #8

Hello,

I have found a solution

I struggled also long with it, after upgrading from Vuforia 9 to 10 android apps had black screen

After trying many things the solution was for me doing this steps:

- Removing graphic API Vulkan and using GLES3 and GLES2 in player settings

- Uncheck include ARCore in Vuforia Configuration

- Adding ARCore in Unity Project Settings> XR Plug-in Management> install XR-plugins then check the ARCore box

Actually I didn’t do any thing regarding target architectures , so I checked both ARMv7 and ARM64

And now the app is working fine on android

Black screen on Android phone

October 28, 2021 - 3:52am #7

Hey there,

 

This is related to Google removing ARCore support for 32-bit apps on 64-bit devices. Please read here: https://developers.google.com/ar/64bit

You should make sure you build your app as well for 64-bit devices. ahmedpasic's comment explains how.

I hope that helps.

 

Kind regards,

Patrick Scheper

Technical Community Manager

Black screen on Android phone

October 27, 2021 - 11:28am #6

same issue from my end. works fine in unity but when I install it in my android phone it displayes black screen. the app asked for camera permission, allowed it but still black screen. 

Black screen on Android phone

August 22, 2021 - 2:36am #5

Hi.

I don't think we had the same problem but I'm going to give you my solution I figured out. In project setting instead of Mono scripting backend I used IL2CPP and targeted both ARMv7 and ARM64 architectures. I hope this helps someone who has the same problem.

Black screen on Android phone

August 21, 2021 - 1:58pm #4

I'm having the exact same issue, 4 of my applications just stopped working on my android device (Samsung Galaxy S20+[Exynos]) and display a black screen.

After some debugging i found a few things -

* I'm receiving 7 errors, starting with "Positional device tracker failed to initialize." and then the rest is Vuforia failing basically.

after uninstalling Google Services for ARCore, i was able to receive a feed from the camera, though i now got only one error- "SmartTerrain failed to initialize".

I would really appreciate a quick fix, as i mentioned- i have 4 applications failing to start on some devices, 2 of them commercial at the company i work in.

 

Thanks!

Black screen on Android phone

August 20, 2021 - 8:19am #3

Hello,

sorry for the late reply. I just tried the Vuforia Core Samples and the AR camera works fine. On my project (the one where the camera isn't working) I use Unity 2020.3.16f1. I also tried it on Unity 2019.4.29f1 and that version isn't giving me better results. Since the samples work fine, I wonder what the difference is. Is it possible to fix it without always importing this Core Sample Asset?

 

Thanks in advance, Ahmed Pašić

Black screen on Android phone

August 18, 2021 - 7:49am #2

Hey there,

 

Would you be able to build the core samples and see if the issue keeps arising? And which Unity version are you running? Also I recommend to make sure that ARCore is updated to the latest version.

 

Kind regards,

Patrick Scheper

Technical Community Manager

Topic locked