Unity3D 錯誤,nativeVideoFrameCallback解決方案。

來源:互聯網
上載者:User

Unity3D在打包安卓應用的時候,一開啟遊戲就閃退,接入LogCat之後發現有如下的Log:

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.

出錯原因:

unity PlayerSetting設定的螢幕方向和Manifest裡面設定的螢幕方向不一致。

解決方案:

將PlayerSetting螢幕方向和Manifest裡的螢幕設定方向設定相同。



相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.