- Home /
Android Black Screen when built
I'm using the Unity 5.5.2f1 32bits + Vuforia with VideoPlayback Scene. When i run it on my Windows, everything works very well, but when i am trying to run and build it to my Android Zenfone 2 or my Motorola G, the splash is showed normally, but after that i am getting a black screen and nothing to happens. I did everything i have read in this answers and can't solved it. Does anyone can help me please? I don't know what do do anymore. Thanks a lot.
Answer by SohailBukhari · Mar 24, 2017 at 12:28 PM
Apparently, if you have only one camera set up as "don't clear" in the scene, the editor will give you no problem but the built executable will not show anything at all.
Are you sure you are building correct scene?
sohail_786 What you mean as "Do'nt Clear". Where can i check it ?
This option will be found in the camera inspector. There will be a clear flags option and here check for dont clear option. i am trying to attach image but unfortunately image is not uploading.
On my old Huawei P8 lite Android 6 the camera-setting solved the problem - thank You very much.
Turns out it was just my camera that I accidentally set up as don't clear was the issue the whole time. Thanks a lot.
Answer by aCorreaGomes · Mar 29, 2017 at 02:46 PM
@Addyarb and @sohail_786 Thank you very much for your attention. Finally I've solved that problem updating my Java for the latest version and updating all of my sdk on SdkTools. Have a good day you guys;
3 years later... (Unity 2019.4) I had an update on my android, after that black screen on build and remote play didn't work. (already before Logo). Updating the Android Studio helped getting it to run in remote play. (Android 10+ support).
Answer by Addyarb · Mar 24, 2017 at 03:11 PM
Hey there,
This is a fairly common issue I run into when building for Android. This is typically a result of attempting to render textures that are too large. Do your best to keep all textures at or under 512x512 for the best performance.
Here's some steps you can take to get your textures up and running immediately - and then you can tweak them one-by-one as needed.
Select all textures that you'll be using in all of your scenes.
At the very bottom of the inspector - tick 'Override for Android' to true/checked.
Set the 'Max Size' dropdown to 512.
Click 'Apply' at the bottom right.
Re-build your project
Good luck!
Answer by aCorreaGomes · Mar 29, 2017 at 02:50 PM
@sohail_786 I have just one scene. I'm using the "Vuforia VideoPlayback Example" that comes with Vuforia. In "Build Settings" i just clicked on "Add Open Scenes" and built. Look that Print I'm attaching below. Thanks man.
Answer by hameed-ullah-jan · Jul 06, 2018 at 11:46 AM
removing this permission from the manifest, solved the issue for me android:name="android.permission.WRITE_EXTERNAL_STORAGE"
Your answer
Follow this Question
Related Questions
Unity2017.2 apk build comes out black in Samsung A5(Android 7.0) 1 Answer
Mediatek MTK6516 ARM9 With Unity? 1 Answer
Optimizing coroutines? 2 Answers
Why my app supports fewer devices? 1 Answer
Compass with vertical device 1 Answer