Device type & OS version : Android 11 - OnePlus 7T
Host machine & OS version : Windows 10
Issue Environment : On Device
Description of the issue:
When the app launches I was getting the black screen issue on my mobile device. I am getting the below errors in the Android Logcat, Please check :
We are tracking similar errors in different areas of ARDK. We are currently working to find a resolution for these issues. We will post here when we have a resolution. Thank you for your patience.
Currently we are still working on an answer for this issue. A fix is in the works. We thank you for your patience. We will post a public response to cover all the instances of this error.
You mentioned that the black screen occurs when the app launches. Are you referring to the ARDK example scenes here? If so, which scenes are you having an issue with?
It might also be helpful if you can attach a screenshot of your build settings, and player settings (other settings) for the project that you’re having issues with that so we can take a look. I’ve attached an example of what we’re looking for here.
Some other common player settings that can cause an issue are:
Not setting the target API Level to API Level 29
Not using IL2CPP as the scripting backend (Unity defaults to Mono for Android)
Not setting the target architecture to ARM64 (Unity defaults to ARMv7 / Mono, instead of IL2CPP / ARM64
Hey @David_Quevedo@Jason_Rose1 thank you for your inputs on the issue so far. We are in the process of building a few demos and unfortunately everything has come to a standstill for us due to the blackscreen issues.
Are there any updates, or temporary fixes/approaches you could suggest for us to continue our work? Or if there is an update on the progress for a fix, that will help us manage expectations, it’ll be really helpful to know more.
Hello Siddharth & Akhil,
We are still working on this issue. If you have any screenshots of this issue that would be most helpful, or any further information, please post your information here. Your patience is appreciated.
Hi Akhil, sorry for the delayed response, but it looks like you’re targeting Android 11 (Api Level 30) in the build settings of the screenshot that you shared previously. Please note that it is possible to target Android 11 with ARDK, but due to changes in that API, you will need to add some tags to the AndroidManifest.xml. More information can be found here under the section “Building for Android 11 (API level 30) and higher.”
One quick test that you can do, though, is to change the Target API Level to Android 10 (API Level 29) and see if you still get a black screen when running the app on-device. Also, you might want to double check permissions for the app on the device that you’re installing to, and enable any permissions that are currently disabled.
For those still struggling and running on Android, note that the ARDepthManager is also Required on the camera for it to function on Android.
Does not seem to require it on iOS