Android app will install but not run

I’m trying to build a basic 2D game for Android. I cannot seem to make it detect my device from a USB cable and I know it’s not the cable. What I am doing is downloading the .apk file directly to the device and trying to run it there. The app will install but when I go to open it, it will just give me a black screen. I am using the latest stable version of Unity. Any help would be greatly appreciated!

I just need a bit of clarification: When say “trying to run it there” do you mean run it from the file explorer on your computer but within the mobile device’s files or actually on your phone when it is unplugged? If it is unable to detect your device via USB how are you putting the .apk file on the device? I found out that one of my older/off-brand micro-USB cables won’t allow my computer to detect my phone (even though it will charge it). I had to use a Samsung brand or a new cable for it show up on my computer.

I am downloading the file to my device without it being connected to my computer (to be specific I email it to myself). I then install it from there and it does install successfully.

When the device is connected to my computer with a USB cable, I can access the files on my phone from the file explorer of my computer, but Unity will not detect the device.

That is odd. Do you have Unity Remote installed on your phone? That won’t help with the installation but will help Unity detect the device. I am not sure why it doesnt work on your phone, but i found this forum with similar issues: Android , not working - Questions & Answers - Unity Discussions

After doing research, I found that all I needed to do was change the USB settings from ‘File Transfer’ to ‘Charging Only’. Everything works fine now! Thank you for all your help!

Good to hear! I think i actually had to do that too but it was a long time ago and i totally forgot. Sorry i wasnt more help.