簡體   English   中英

在不同的Android設備上的不同游戲行為

[英]Different game behavior on different Android devices

  • 當我在裝有Android 4.3的S3上運行Unity游戲時,一切正常。
  • 當我在裝有Android 4.1.2的平板電腦上移動該應用程序時,該游戲運行正常,但無法連接到google,fb或廣告服務,它甚至沒有嘗試連接,就像沒有編程來做那樣。 平板電腦當然已連接到互聯網。 即使沒有互聯網連接,它也應該以不同的方式運行(返回布爾值),但事實並非如此。
  • 另一方面,當我在使用Android 5.0.2的S6上測試應用程序時,應用程序菜單啟動,它連接到服務,但是當您按按鈕加載游戲崩潰級別時...

我不了解該應用程序在不同設備上的工作方式如何不同。

我已經將JAVA ANDROID SDK更新到最新版本。

  1. 原因可能是我在androidManifest中缺少了什么嗎?
  2. 還是應該通過Play商店安裝該應用,而現在該應用被視為不受信任?
  3. 內存泄漏會導致應用崩潰嗎? (但后來我相信,它在任何設備上都應該是相同的,並且不會在平板電腦上解釋該問題)。

在S6上運行時的LogCat日志 該應用程序從以下行崩潰:E / Watchdog(3549):!@Sync 865

E/bt-btif (13388): bta_av_str_stopped:audio_open_cnt=1, p_data ea084398
E/PersonaManagerService( 3549): inState():  stateMachine is null !!
E/WindowState( 3549): getStack: Window{db782a6 u0 com.android.contacts/com.andro
id.dialer.DialtactsActivity} couldn't find taskId=78 Callers=com.android.server.
wm.WindowState.getDisplayContent:1230 com.android.server.wm.WindowState.isDefaul
tDisplay:1834 com.android.server.wm.WindowState.getMultiWindowStyleLw:2363 com.a
ndroid.server.wm.WindowManagerService.setFocusedApp:5586
E/ActivityManager( 3549): checkUser: useridlist=null, currentuser=0
E/ActivityManager( 3549): checkUser: useridlist=null, currentuser=0
E/ActivityManager( 3549): checkUser: useridlist=null, currentuser=0
E/ActivityManager( 3549): checkUser: useridlist=null, currentuser=0
E/Zygote  ( 3434): MountEmulatedStorage()
E/Zygote  ( 3434): v2
E/SELinux ( 3434): [DEBUG] get_category: variable seinfo: default sensitivity: N
ULL, cateogry: NULL
E/bt-btif (13388): bta_av_link_role_ok hndl:x41 role:1, conn_audio:x1, bits:1, f
eatures:x8049
E/bt-btif (13388): btif_media_task_aa_handle_timer now_us 76657411948 less than
0
E/SamsungIME(12313):          isHWKeyboardConnected() = false --> false
E/bt-avp  (13388): opcode 0
E/SmartFaceService( 3549): onReceive: android.intent.action.CONFIGURATION_CHANGE
D
E/SmartFaceService( 3549): mFolderCoverOpened: (true, true) -> true
E/ActivityManager( 3549): checkUser: useridlist=null, currentuser=0
E/ActivityManager( 3549): checkUser: useridlist=null, currentuser=0
E/ActivityManager( 3549): checkUser: useridlist=null, currentuser=0
E/ActivityManager( 3549): checkUser: useridlist=null, currentuser=0
E/Zygote  ( 3451): MountEmulatedStorage()
E/Zygote  ( 3451): v2
E/SELinux ( 3451): [DEBUG] get_category: variable seinfo: samsung sensitivity: N
ULL, cateogry: NULL
E/bt-avp  (13388): opcode 0
E/DeviceInfo( 3451): csc = PLS
E/DeviceInfo( 3451): country = Poland
E/GamesNativeSDK( 3434): Exception in dalvik/system/DexClassLoader.loadClass: ja
va.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.games.
NativeSdkEntryPoints" on path: DexPathList[[zip file "/data/data/com.dkgames.The
Saw/app_.gpg.classloader/4da25210572e7e07ea67142ded62c42e.jar"],nativeLibraryDir
ectories=[/vendor/lib, /system/lib]].
E/bt-avp  (13388): opcode 0
E/Watchdog( 3549): !@Sync 863
E/PowerManagerService( 3549): handleSandman : startDreaming, but isDreaming fals
e
E/SmartFaceService( 3549): onReceive: android.intent.action.SCREEN_OFF
E/MotionRecognitionService( 3549):  handler : SCREEN_OFF end
E/SContext.CaeProvider( 3549): setAttribute() : attribute is null!
E/WifiNative-wlan0( 3549): do suspend true
E/bt-btif (13388): bta_av_str_stopped:audio_open_cnt=1, p_data ea0846dc
E/bt-avp  (13388): opcode 0
E/bt-avp  (13388): opcode 0
E/LSO     (11114): LSO Service is not yet ready!!!
E/ActivityManager( 3549): checkUser: useridlist=null, currentuser=0
E/ActivityManager( 3549): checkUser: useridlist=null, currentuser=0
E/ActivityManager( 3549): checkUser: useridlist=null, currentuser=0
E/ActivityManager( 3549): checkUser: useridlist=null, currentuser=0
E/Zygote  ( 3619): MountEmulatedStorage()
E/Zygote  ( 3619): v2
E/SELinux ( 3619): [DEBUG] get_category: variable seinfo: platform sensitivity:
NULL, cateogry: NULL
E/S-Physics( 3619): PhysicsEngineJNI JNI_OnLoad enter!!
E/S-Physics( 3619): Success find Class
E/S-Physics( 3619): PhysicsEngineJNI JNI_OnLoad Success
E/WaterDroplet_JniWaterDropletRenderer( 3619): JniWaterDropletRenderer is called

E/WaterDroplet_JniWaterDropletRenderer( 3619): native_Init_JNI is called
E/<< JOOON >> ( 3619): Call the native_Init_JNI
E/SamsungIME(12313):          isHWKeyboardConnected() = false --> false
E/SmartFaceService( 3549): onReceive: android.intent.action.CONFIGURATION_CHANGE
D
E/SmartFaceService( 3549): mFolderCoverOpened: (true, true) -> true
E/SurfaceFlinger( 2927): rejecting buffer: bufWidth=2560, bufHeight=1440, front.
active.{w=1440, h=2560}
E/SamsungWindowManager( 3549): mCoreNumLockHelper.acquire
E/SmartFaceService( 3549): onReceive: android.intent.action.SCREEN_ON
E/MotionRecognitionService( 3549):  handler : SCREEN_ON end
E/WifiNative-wlan0( 3549): do suspend false
E/ActivityThread(11131): Failed to find provider info for com.sec.android.chinah
oliday
E/bt-btif (13388): bta_av_link_role_ok hndl:x41 role:1, conn_audio:x1, bits:1, f
eatures:x8049
E/bt-avp  (13388): opcode 0
E/bt-btif (13388): btif_media_task_aa_handle_timer now_us 76701272713 less than
0
E/bt-avp  (13388): opcode 0
E/MotionRecognitionService( 3549):   mReceiver.onReceive : ACTION_USER_PRESENT
:: UNLOCK SCREEN
E/ActivityManager( 3549): checkUser: useridlist=null, currentuser=0
E/ActivityManager( 3549): checkUser: useridlist=null, currentuser=0
E/ActivityManager( 3549): checkUser: useridlist=null, currentuser=0
E/ActivityManager( 3549): checkUser: useridlist=null, currentuser=0
E/Zygote  ( 3681): MountEmulatedStorage()
E/Zygote  ( 3681): v2
E/SELinux ( 3681): [DEBUG] get_category: variable seinfo: release sensitivity: N
ULL, cateogry: NULL
E/JavaBinder( 3549): !!! FAILED BINDER TRANSACTION !!!
E/JavaBinder( 3549): !!! FAILED BINDER TRANSACTION !!!
E/SamsungIME(12313):          isHWKeyboardConnected() = false --> false
E/SmartFaceService( 3549): onReceive: android.intent.action.CONFIGURATION_CHANGE
D
E/SmartFaceService( 3549): mFolderCoverOpened: (true, true) -> true
E/bt-avp  (13388): opcode 0
E/Watchdog( 3549): !@Sync 864
E/Watchdog( 3549): !@Sync 865
E/audit   ( 4956): type=1701 msg=audit(1430213672.481:337): auid=4294967295 uid=
10209 gid=10209 ses=4294967295 subj=u:r:untrusted_app:s0 pid=3478 comm="main" re
ason="memory violation" sig=11
E/InputDispatcher( 3549): channel ~ Channel is unrecoverably broken and will be
disposed!
E/WindowState( 3549): getStack: Window{db782a6 u0 com.android.contacts/com.andro
id.dialer.DialtactsActivity} couldn't find taskId=78 Callers=com.android.server.
wm.WindowState.getDisplayContent:1230 com.android.server.wm.WindowState.isDefaul
tDisplay:1834 com.android.server.wm.WindowState.getMultiWindowStyleLw:2363 com.a
ndroid.server.wm.WindowManagerService.setFocusedApp:5586
E/SamsungIME(12313):          isHWKeyboardConnected() = false --> false
E/SmartFaceService( 3549): onReceive: android.intent.action.CONFIGURATION_CHANGE
D
E/SmartFaceService( 3549): mFolderCoverOpened: (true, true) -> true
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=202
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xdeceea30
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=204
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xd7ade5d0
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=1748
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xc95fcc40
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=1751
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xcd272390
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=1753
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xcd272450
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=1754
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xcd2724c0
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=1755
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xcd272540
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=1756
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xcd272590
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=1757
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xcd272690
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=1758
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xcd2727b0
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=1759
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xcd272850
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=1760
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xcd2728e0
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=1761
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xcd272950
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=1762
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xcd272a00
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=1763
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xcd272ad0
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=1765
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xcd272e50
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=1767
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xcd272f00
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=1769
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xcd275290
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=1771
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xcd275580
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=6252
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xdffe3700
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=6254
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xdffe37d0
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=6256
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xd57878f0
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=6258
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xcd275570
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=6260
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xdffe3570
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=6262
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xdffe3450
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=87
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xd57b05c0
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=90
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xd57b0cf0
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=92
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xd579b3c0
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=99
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xd0fe9630
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=101
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xd0fe9cd0
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=239
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xd27c4d40
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=759
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xef46eb30
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=761
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xef46eff0
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=763
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xef470460
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=765
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xef4708c0
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=768
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xef470d20
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=771
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xef4751d0
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=777
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xda56c450
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=778
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xda56c9e0
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=779
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xda56cf60
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=785
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xef475e30
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=787
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xef4ba2c0
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=795
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xdc2fd460
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=796
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xdc2fd9f0
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=798
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xda676530
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=799
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xda676ab0
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=800
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xda679050
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=801
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xda6795d0
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=802
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xda679b50
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=803
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xcd695100
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=810
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xdff835f0
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=813
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xef4d08c0
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=818
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xef4d32b0
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=808
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xe1f176f0
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=811
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xe1f17cd0
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=814
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xe1f17d80
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=821
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xdff235e0
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=822
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xcd696570
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=823
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xcd696af0
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=828
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xef4d3920
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=830
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xef4d3d80
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=832
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xef4da210
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=2515
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xcc97ee00
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=2935
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xcca59c20
E/image-factory(13312): ImageFactory::Load() ticket->resourceId=9053
E/image-factory(13312): ImageFactory::Load() ticket->typePath.type=0xd276db20
E/resource-client(13312): ResourceClient::RequestResourceTicket() resourceId not
 found(Id: 62)
E/resource-client(13312): ResourceClient::RequestResourceTicket() resourceId not
 found(Id: 8974)
E/resource-client(13312): ResourceClient::RequestResourceTicket() resourceId not
 found(Id: 8983)
E/resource-client(13312): ResourceClient::RequestResourceTicket() resourceId not
 found(Id: 8985)
E/resource-client(13312): ResourceClient::RequestResourceTicket() resourceId not
 found(Id: 8987)
E/resource-client(13312): ResourceClient::RequestResourceTicket() resourceId not
 found(Id: 8989)
E/resource-client(13312): ResourceClient::RequestResourceTicket() resourceId not
 found(Id: 8991)
E/resource-client(13312): ResourceClient::RequestResourceTicket() resourceId not
 found(Id: 8995)
E/resource-client(13312): ResourceClient::RequestResourceTicket() resourceId not
 found(Id: 8997)
E/resource-client(13312): ResourceClient::RequestResourceTicket() resourceId not
 found(Id: 8999)
E/resource-client(13312): ResourceClient::RequestResourceTicket() resourceId not
 found(Id: 9001)
E/resource-client(13312): ResourceClient::RequestResourceTicket() resourceId not
 found(Id: 9003)
E/resource-client(13312): ResourceClient::RequestResourceTicket() resourceId not
 found(Id: 9005)
E/resource-client(13312): ResourceClient::RequestResourceTicket() resourceId not
 found(Id: 9007)
E/resource-client(13312): ResourceClient::RequestResourceTicket() resourceId not
 found(Id: 9009)
E/resource-client(13312): ResourceClient::RequestResourceTicket() resourceId not
 found(Id: 9011)
E/resource-client(13312): ResourceClient::RequestResourceTicket() resourceId not
 found(Id: 9013)
E/resource-client(13312): ResourceClient::RequestResourceTicket() resourceId not
 found(Id: 9016)
E/resource-client(13312): ResourceClient::RequestResourceTicket() resourceId not
 found(Id: 9017)
E/resource-client(13312): ResourceClient::RequestResourceTicket() resourceId not
 found(Id: 9018)
E/resource-client(13312): ResourceClient::RequestResourceTicket() resourceId not
 found(Id: 9019)
E/resource-client(13312): ResourceClient::RequestResourceTicket() resourceId not
 found(Id: 9021)
E/SurfaceFlinger( 2927): rejecting buffer: bufWidth=2560, bufHeight=1440, front.
active.{w=1440, h=2560}
E/bt-btif (13388): bta_av_str_stopped:audio_open_cnt=1, p_data ea0845f8
E/bt-avp  (13388): opcode 0
E/bt-avp  (13388): opcode 0
^C

每個設備都不相同。 這意味着某些設備具有Google Play服務,某些設備不支持藍牙等

將應用程序安裝到設備上時,它會決定該設備將運行什么代碼,我不確定如何在Unity對其進行配置(我希望它是相同的),但是當手動創建Android項目時,會創建一些文件夾如drawable-mdpilayout-port 檢查文件夾中是否有一個不是由您創建的文件,它可能包含一些“ Hello World”代碼,但是當您將其安裝在設備上時,它會選擇該布局而不是您期望的布局,因此在您的代碼運行時它找不到預期的布局,因此崩潰了。

這可以解釋您遇到的resourceId error ,盡管我不能100%確定。

如果您不知道這些文件夾是什么,請閱讀Android-提供資源

它與沒有從Google Play進行安裝無關,只要安裝就可以正常運行。

Android清單也不應該成為問題,如果新版本的android需要您尚未輸入的一些新權限,那將是一個問題,但是我在您的日志中看不到這樣的錯誤。

如果此應用很大,那么如果處理不當,內存可能會導致游戲崩潰,但是S6具有很高的規格,並且由於該游戲可以在其他設備上運行,因此我非常懷疑這是問題所在。 由於菜單正常工作,並且只有在您啟動游戲時才會崩潰,請嘗試注釋掉代碼( Unity有代碼,對嗎?),然后找出導致崩潰的行。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM