我不明白应用在不同设备上的工作方式如何不同。
我已将JAVA,ANDROID SDK更新到最新版本。
在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
答案 0 :(得分:1)
每个设备都与其他设备不同。这意味着有些设备有谷歌播放服务,有些设备不支持蓝牙等等
在将设备安装到设备时,会对该设备运行的代码做出一些选择,我不确定如何在Unity
上配置它(我希望它是相同的)但是在制作时Android项目手动创建一些文件夹,如drawable-mdpi
或layout-port
。检查文件夹中是否存在非您创建的文件,它可能包含一些“Hello World”代码,但是当您在设备上安装它时,它会选择该布局而不是您期望的布局,以便代码运行时它无法找到预期的布局,因此它会崩溃。
这可以解释你所获得的resourceId error
,虽然我无法100%肯定。
如果您不知道这些文件夹是什么,请阅读Android - Providing Resources
与没有从Google Play安装无关,只要安装它就可以毫无问题地运行。
Android清单也不应该是一个问题,如果新版本的android需要一些你没有输入的新权限,那将是一个问题,但我没有在你的日志中看到这样的错误。
如果这个应用程序很大,如果处理不当,内存可能会导致游戏崩溃,但S6有很高的规格,而且由于游戏已在其他设备上运行,我非常怀疑这是问题所在。由于菜单正常运行且只在您开始游戏时崩溃,请尝试注释掉代码(Unity
有代码,对吧?)并找出导致崩溃的行。