Address: http://blog.csdn.net/alking_sun/article/details/23684733
When unity3d is packaging Android applications, the game will crash as soon as it is opened. After accessing logcat, the following logs are found:
04-14 10:12:08. 283: Debug/dalvikvm (23204): unregistering JNI method lcom/unity3d/player/unityplayer;. nativevideoframecallback: vilii
04-14 10:12:08. 283: Debug/dalvikvm (23204): unregistering JNI method lcom/unity3d/player/unityplayer;. nativesoftinputclosed: V
04-14 10:12:08. 283: Debug/dalvikvm (23204): unregistering JNI method lcom/unity3d/player/unityplayer;. nativesettouchdeltay: VF
04-14 10:12:08. 283: Debug/dalvikvm (23204): unregistering JNI method lcom/unity3d/player/unityplayer;. nativesetinputstring: VL
04-14 10:12:08. 283: Debug/dalvikvm (23204): unregistering JNI method lcom/unity3d/player/unityplayer;. nativesetinputcanceled: VZ
04-14 10:12:08. 283: Debug/dalvikvm (23204): unregistering JNI method lcom/unity3d/player/unityplayer;. nativesetextras: VL
04-14 10:12:08. 283: Debug/dalvikvm (23204): unregistering JNI method lcom/unity3d/player/unityplayer;. nativesetdefaultdisplay: vi
04-14 10:12:08. 283: Debug/dalvikvm (23204): unregistering JNI method lcom/unity3d/player/unityplayer;. nativeresume: V
04-14 10:12:08. 283: Debug/dalvikvm (23204): unregistering JNI method lcom/unity3d/player/unityplayer;. nativeresize: viiii
04-14 10:12:08. 283: Debug/dalvikvm (23204): unregistering JNI method lcom/unity3d/player/unityplayer;. nativerequestedaa: I
04-14 10:12:08. 283: Debug/dalvikvm (23204): unregistering JNI method lcom/unity3d/player/unityplayer;. nativerequested32bitdisplaybuffer: Z
04-14 10:12:08. 283: Debug/dalvikvm (23204): unregistering JNI method lcom/unity3d/player/unityplayer;. nativerender: Z
04-14 10:12:08. 283: Debug/dalvikvm (23204): unregistering JNI method lcom/unity3d/player/unityplayer;. nativerecreategfxstate: VL
04-14 10:12:08. 291: Debug/dalvikvm (23204): unregistering JNI method lcom/unity3d/player/unityplayer;. nativepause: Z
04-14 10:12:08. 291: Debug/dalvikvm (23204): unregistering JNI method lcom/unity3d/player/unityplayer;. nativekeyspressed: VL
04-14 10:12:08. 291: Debug/dalvikvm (23204): unregistering JNI method lcom/unity3d/player/unityplayer;. nativeinjectevent: ZL
04-14 10:12:08. 291: Debug/dalvikvm (23204): unregistering JNI method lcom/unity3d/player/unityplayer;. nativeinitwww: VL
04-14 10:12:08. 291: Debug/dalvikvm (23204): unregistering JNI method lcom/unity3d/player/unityplayer;. nativefocuschanged: VZ
04-14 10:12:08. 291: Debug/dalvikvm (23204): unregistering JNI method lcom/unity3d/player/unityplayer;. nativefile: VL
04-14 10:12:08. 291: Debug/dalvikvm (23204): unregistering JNI method lcom/unity3d/player/unityplayer;. nativedone: V
04-14 10:12:08. 291: Debug/dalvikvm (23204): unregistering JNI method lcom/unity3d/player/unityplayer;. nativeactivityindicatorstyle: I
04-14 10:12:08. 291: Debug/dalvikvm (23204): unregistering JNI method lcom/unity3d/player/unityplayer;. initjni: VL
04-14 10:12:08. 291: Debug/dalvikvm (23204): unregistering JNI method lcom/unity3d/player/unityplayer;. unitysendmessage: Vlll
04-14 10:12:08. 291: Debug/dalvikvm (23204): unregistering JNI method lcom/unity3d/player/unityplayer;. nativesetlocationstatus: vi
04-14 10:12:08. 291: Debug/dalvikvm (23204): unregistering JNI method lcom/unity3d/player/unityplayer;. nativesetlocation: vffffdf
04-14 10:12:08. 291: Debug/dalvikvm (23204): unregistering JNI method lcom/unity3d/player/unityplayer;. nativeforwardeventstodalvik: VZ
04-14 10:12:08. 291: Debug/dalvikvm (23204): unregistering JNI method lcom/unity3d/player/unityplayer;. nativedeviceorientation: vi
04-14 10:12:08. 291: Debug/dalvikvm (23204): unregistering JNI method lorg/fmod/fmodaudiodevice;. fmodunblockstreaming: I
04-14 10:12:08. 291: Debug/dalvikvm (23204): unregistering JNI method lorg/fmod/fmodaudiodevice;. fmodprocess: il
04-14 10:12:08. 291: Debug/dalvikvm (23204): unregistering JNI method lorg/fmod/fmodaudiodevice;. fmodinitjni: I
04-14 10:12:08. 291: Debug/dalvikvm (23204): unregistering JNI method lorg/fmod/fmodaudiodevice;. fmodgetinfo: II
04-14 10:12:08. 291: Debug/dalvikvm (23204): unregistering JNI method lorg/fmod/fmodaudiodevice;. fmodblockstreaming: I
04-14 10:12:08. 291: Debug/dalvikvm (23204): unregistering JNI method lorg/fmod/fmodaudiodevice;. fmodprocessmicdata: Ili
04-14 10:12:08. 291: Debug/dalvikvm (23204): unregistering JNI method lcom/unity3d/player/reflectionhelper;. nativeproxyinvoke: Lill
04-14 10:12:08. 291: Debug/dalvikvm (23204): unregistering JNI method lcom/unity3d/player/reflectionhelper;. nativeproxyfinalize: vi
04-14 10:12:08. 307: INFO/process (23204): Sending signal. PID: 23204 Sig: 9
04-14 10:12:08. 330: INFO/activitymanager (379): Process XXXXXXXXX (PID 23204) has died.
Error cause:
The screen direction set in Unity playersetting is different from that set in manifest.
Solution:
Set the orientation of the playersetting screen to the same as that of the screen setting in manifest.