- Home /
Blue screen when build for android
I tried to build a game on android but the game only shows a blue screen, no error or stuff. Here is what I have tried:
Checking if the game contains any scene
Try to build a completed old game. I haven't touched this game for months and the last time I build this game, it worked as intended. But this time, the only thing I did was press build and the game got a blue screen
Switch to a different platform. When I switch to PC, the game build as intended
So I think the problem relates to some Android thing, not the game itself. But I don't know what causes it.
My minimum API build level: Android 4.1
Target API level: Automatic
SDK Tools Version: 26.1.1 (already tried using the 25.x.x but still got the same problem)
SDK Platforms installed: Android 9+ (API 29), Android 4.1 (API 16)
Yes you are right it only happen for android and i did experience that many times, And for me problem was android manifest where my lunch activity was wrong. So if it is possible please share your android manifest. You can find android manifest under Asset->Plugin->Android->Android$$anonymous$$anifest.
I don't use plugin so I do a quick search and got this Android$$anonymous$$anifest file from the editor. Hope this is the one you looking for:
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.unity3d.player"
xmlns:tools="http://schemas.android.com/tools"
android:installLocation="preferExternal">
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
android:anyDensity="true"/>
<application
android:theme="@style/UnityThemeSelector"
android:icon="@mipmap/app_icon"
android:label="@string/app_name">
<activity android:name="com.unity3d.player.UnityPlayerActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.$$anonymous$$AIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data android:name="unityplayer.UnityActivity" android:value="true" />
</activity>
</application>
</manifest>
Your answer
Follow this Question
Related Questions
[ERROR ][Android Build] [5.3.4] Not able to build 1 Answer
Android - Building Beta Problems. 0 Answers
Problem creating/installing apk with google cardboard sdk 3 Answers
Android - Error building Player: CommandInvokationFailure: Failed to re-package resources 3 Answers
Object speed is much slower on iOS and Android build than on Editor 2 Answers