Android App Refuses To Launch On My Phone

Every time I build or build & run then install the game to my phone I get a black screen and then the game will close after a few seconds and return to my home screen. I need help here because I’ve tried many different player settings but nothing seems to work. I am running android 4.1.2 and my phone is an HTC One SV. I also have installed the developer tools and packages for 4.1.2 in the Android SDK Manager. I am using Unity 4.3 and there are no console errors. I also have all the scenes I want added to the build settings. What am i doing wrong?! Please help me!
Thanks so much.

Hey Tyrebear, Try to test it on other devices.

Try creating a basic scene first - just a cube and a light - does that work? If so, then you need to isolate elements from your game and work out which one is causing the crash (do you have lots of large textures, for example?)

Hey guys thanks for commenting. I have already tried to make an empty scene with a cube and a light to no avail. Also I don't have access to any other devices so what do I do now?

When you say you don't see any console errors, do you mean just Unity console? If you haven't tried it already, run the Monitor program that comes with the Android SDK (usually found in ./sdk/tools/) : [http://developer.android.com/tools/help/monitor.html][1] Make sure you're looking at the LogCat tab and this will give you detailed output about a lot of things happening on your device. Hopefully this will help to solve your issue. [1]: http://developer.android.com/tools/help/monitor.html

Alright I got it fixed! Finally! :D It seems that the problem after all was a corrupt version of unity 4.3.1f1. I wouldn't have thought that to be the problem without your guys' help. Thanks so much.

2 Answers

2

Awesome I didn’t know about the monitor program until now. It appears as though Unity is exporting a corrupted .apk and my phone is expecting unity 4.3.0f4 when my actual unity version is 4.3.1f1. I’ll try to re install unity 4.3.0f4 and see if that fixes anything. Thanks for the suggestions and I’ll keep you guys posted

As far as I'm aware, the device shouldn't expect any particular version of Unity. Perhaps it is having trouble with the minimum api level you've chosen in the build settings for your project? Be sure you have it set to something that is the same or lower than the device you're trying to test on. For example, if your phone is running Android 4.1, you would want to set your minimum api to be 4.1 or lower. (See attached image for location) [19139-settings.png|19139]

I upgraded to windows 10 and that solved my problem. i know it is not the most convinient solution but hey it worked for me