creator 到底支持打包android 4.吗?半个多月了,各种闪退,试过了creator2.0.9, creator2.0.5,creator2.1.0,各种闪退,最近贴子里的关于android 4.4.2闪退的问题,都是我发的,有人知道吗?游戏都好了,就差最后打包apk的一哆嗦了。
麻烦提供下闪退的demo和重现闪退的步骤,谢谢!我这边就是android 4.4.2测试机,没有出现你说的各种闪退。
好的,这是 我用creator2.0.5打包的helloworld,闪退
05-05 11:20:57.717 1995-2013/org.cocos2d.helloworld205 D/jswrapper: libuv version: 1.13.1
05-05 11:20:57.727 1995-2025/org.cocos2d.helloworld205 D/jswrapper: Debugger listening..., visit [ chrome-devtools://devtools/bundled/inspector.html?v8only=true&ws=0.0.0.0:5086/00010002-0003-4004-8005-000600070008 ] in chrome browser to debug!
05-05 11:20:57.727 1995-2025/org.cocos2d.helloworld205 D/jswrapper: For help see https://nodejs.org/en/docs/inspector
05-05 11:20:57.817 1995-2013/org.cocos2d.helloworld205 W/dalvikvm: dvmFindClassByName rejecting 'org/cocos2dx/lib/Cocos2dxLocalStorage'
05-05 11:20:57.857 1995-2013/org.cocos2d.helloworld205 D/cocos2d-x: fullPathForFilename: No file found at jsb-adapter/jsb-builtin.jsc. Possible missing file.
05-05 11:20:58.387 1995-2013/org.cocos2d.helloworld205 D/jswrapper: JS: Enable batch GL commands optimization!
05-05 11:20:58.397 1995-2013/org.cocos2d.helloworld205 D/cocos2d-x: fullPathForFilename: No file found at main.jsc. Possible missing file.
05-05 11:20:58.417 1995-2013/org.cocos2d.helloworld205 D/cocos2d-x: fullPathForFilename: No file found at src/settings.jsc. Possible missing file.
05-05 11:20:58.427 1995-2013/org.cocos2d.helloworld205 D/cocos2d-x: fullPathForFilename: No file found at src/cocos2d-jsb.jsc. Possible missing file.
05-05 11:20:59.417 1995-2013/org.cocos2d.helloworld205 A/libc: Fatal signal 4 (SIGILL) at 0x000007cb (code=0), thread 2013 (Thread-71)
05-05 11:20:59.537 182-182/? I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
05-05 11:20:59.537 182-182/? I/DEBUG: Build fingerprint: 'HUAWEI/MLA-AL10/HWMLA:4.4.2/HUAWEIMLA-AL10/381190401:user/release-keys'
05-05 11:20:59.537 182-182/? I/DEBUG: Revision: '0'
05-05 11:20:59.537 182-182/? I/DEBUG: pid: 1995, tid: 2013, name: Thread-71 >>> org.cocos2d.helloworld205 <<<
05-05 11:20:59.537 182-182/? I/DEBUG: signal 6 (SIGABRT), code 0 (SI_USER), fault addr --------
05-05 11:20:59.577 182-182/? I/DEBUG: eax 00000000 ebx 000007dd ecx 00000006 edx 00000000
05-05 11:20:59.577 182-182/? I/DEBUG: esi 00000008 edi 1a215030
05-05 11:20:59.577 182-182/? I/DEBUG: xcs 00000073 xds 0000007b xes 0000007b xfs 00000043 xss 0000007b
05-05 11:20:59.577 182-182/? I/DEBUG: eip 7f444700 ebp 7edcf58c esp 7edcf574 flags 00200246
05-05 11:20:59.577 182-182/? I/DEBUG: backtrace:
05-05 11:20:59.577 182-182/? I/DEBUG: #00 pc 00194700 /system/lib/libhoudini.so
05-05 11:20:59.577 182-182/? I/DEBUG: stack:
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf534 7edcf558 [stack:2013]
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf538 7edcf5e4 [stack:2013]
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf53c 7edcf5cc [stack:2013]
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf540 7f374e9a /system/lib/libhoudini.so
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf544 7f4f5c1c /system/lib/libhoudini.so
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf548 00000001
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf54c ffffffff
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf550 00000001
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf554 7edcf578 [stack:2013]
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf558 00000081
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf55c 7edcf5ac [stack:2013]
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf560 7f36689a /system/lib/libhoudini.so
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf564 7f4f69f0 /system/lib/libhoudini.so
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf568 fffffc4b
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf56c 7edcf58c [stack:2013]
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf570 7f444682 /system/lib/libhoudini.so
05-05 11:20:59.577 182-182/? I/DEBUG: #00 7edcf574 7edcf584 [stack:2013]
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf578 00000006
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf57c 00000063
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf580 00000000
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf584 00000028
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf588 00000000
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf58c 7edcf5ac [stack:2013]
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf590 7f43e351 /system/lib/libhoudini.so
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf594 1a215030 [stack:2012]
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf598 00000d1f
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf59c 000000bc
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf5a0 1a215030 [stack:2012]
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf5a4 7edcf604 [stack:2013]
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf5a8 00000005
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf5ac 7edcf5cc [stack:2013]
05-05 11:20:59.577 182-182/? I/DEBUG: 7edcf5b0 7f374848 /system/lib/libhoudini.so
--------- beginning of /dev/log/system
05-05 11:20:59.607 676-696/? I/BootReceiver: Copying /data/tombstones/tombstone_05 to DropBox (SYSTEM_TOMBSTONE)
05-05 11:20:59.607 676-686/? I/ActivityManager: Process org.cocos2d.helloworld205 (pid 1995) has died.
05-05 11:20:59.607 676-1713/? W/MediaFocusControl: AudioFocus audio focus client died
05-05 11:20:59.607 676-1713/? I/MediaFocusControl: AudioFocus removeFocusStackEntry(): removing entry for android.os.BinderProxy@4a8c5f10
05-05 11:20:59.607 676-713/? W/NetworkManagementSocketTagger: setKernelCountSet(10028, 0) failed with errno -13
05-05 11:20:59.607 676-706/? W/InputDispatcher: channel '4a925138 org.cocos2d.helloworld205/org.cocos2dx.javascript.AppActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
05-05 11:20:59.607 676-706/? E/InputDispatcher: channel '4a925138 org.cocos2d.helloworld205/org.cocos2dx.javascript.AppActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
05-05 11:20:59.607 676-852/? W/InputDispatcher: Attempted to unregister already unregistered input channel '4a925138 org.cocos2d.helloworld205/org.cocos2dx.javascript.AppActivity (server)'
05-05 11:20:59.607 676-686/? W/ActivityManager: Force removing ActivityRecord{4a8d04fc u0 org.cocos2d.helloworld205/org.cocos2dx.javascript.AppActivity t5}: app died, no saved state
05-05 11:20:59.607 676-852/? I/WindowState: WIN DEATH: Window{4a925138 u0 org.cocos2d.helloworld205/org.cocos2dx.javascript.AppActivity}
05-05 11:20:59.607 676-852/? W/WindowManager: Force-removing child win Window{4a91ab3c u0 SurfaceView} from container Window{4a925138 u0 org.cocos2d.helloworld205/org.cocos2dx.javascript.AppActivity}
05-05 11:20:59.617 676-851/? W/WindowManager: Failed looking up window
java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@4a8b68ec does not exist
at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8138)
at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8129)
at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:1051)
at android.os.BinderProxy.sendDeathNotice(Binder.java:493)
at dalvik.system.NativeStart.run(Native Method)
05-05 11:20:59.617 676-851/? I/WindowState: WIN DEATH: null
05-05 11:20:59.637 676-696/? D/dalvikvm: GC_FOR_ALLOC freed 455K, 18% free 6061K/7324K, paused 6ms, total 6ms
05-05 11:20:59.637 676-683/? W/JavaBinder: Binder has been finalized when calling linkToDeath() with recip=0x1d600005)
05-05 11:20:59.647 676-689/? D/dalvikvm: GC_FOR_ALLOC freed 43K, 15% free 6276K/7324K, paused 5ms, total 5ms
05-05 11:20:59.647 676-689/? I/dalvikvm-heap: Grow heap (frag case) to 6.798MB for 635808-byte allocation
05-05 11:20:59.647 676-683/? D/dalvikvm: GC_FOR_ALLOC freed <1K, 14% free 6896K/7948K, paused 4ms, total 4ms
05-05 11:20:59.647 186-186/? D/Zygote: Process 1995 exited cleanly (255)
05-05 11:20:59.647 676-689/? W/WindowManager: updateFocusedWindowLocked, focusedAppToken is null.
05-05 11:20:59.667 1901-1901/? E/EGL_emulation: egl: destroying current context refused
05-05 11:20:59.667 1901-1901/? W/libEGL: eglTerminate() called w/ 1 objects remaining
05-05 11:21:01.467 676-2029/? W/ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1123 com.android.server.am.ActivityManagerService.handleApplicationCrashInner:9670 com.android.server.am.NativeCrashListener$NativeCrashReporter.run:86 <bottom of call stack> <bottom of call stack>
05-05 11:21:01.467 676-1713/? W/ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1123 com.android.server.InputMethodManagerService.hideCurrentInputLocked:1880 com.android.server.InputMethodManagerService.windowGainedFocus:1968 com.android.internal.view.IInputMethodManager$Stub.onTransact:221 com.android.server.InputMethodManagerService.onTransact:818
05-05 11:21:01.467 813-823/? W/Binder: Caught a RuntimeException from the binder stub implementation.
java.lang.NullPointerException
at android.inputmethodservice.IInputMethodWrapper.setSessionEnabled(IInputMethodWrapper.java:280)
at com.android.internal.view.IInputMethod$Stub.onTransact(IInputMethod.java:129)
at android.os.Binder.execTransact(Binder.java:404)
at dalvik.system.NativeStart.run(Native Method)
05-05 11:21:01.467 676-1713/? W/InputMethodManagerService: Got RemoteException sending setActive(false) notification to pid 1995 uid 10028
05-05 11:21:03.087 840-909/? W/DebugConnManager: getNetworkInfo() on networkType 1
05-05 11:21:33.557 676-717/? D/ConnectivityService: Sampling interval elapsed, updating statistics ..
05-05 11:21:33.557 676-717/? D/ConnectivityService: Done.
05-05 11:21:33.557 676-717/? D/ConnectivityService: Setting timer for 720seconds
05-05 11:21:33.567 676-746/? D/dalvikvm: GC_FOR_ALLOC freed 859K, 17% free 6685K/7980K, paused 11ms, total 13ms
05-05 11:21:33.567 181-570/? E/BandwidthController: Updating quota globalAlert failed (No such file or directory)
05-05 11:21:33.567 676-717/? D/MobileDataStateTracker: default: setPolicyDataEnable(enabled=true)
05-05 11:21:33.567 676-712/? W/NetworkStats: problem registering for global alert: java.lang.IllegalStateException: command '24 bandwidth setglobalalert 2097152' failed with '400 24 Bandwidth command failed'
05-05 11:21:33.567 676-689/? I/ProcessStatsService: Prepared write state in 1ms
05-05 11:21:47.117 732-736/? D/dalvikvm: GC_CONCURRENT freed 384K, 64% free 4272K/11576K, paused 0ms+1ms, total 3ms
05-05 11:23:25.417 676-696/? D/SettingsProvider: User 0 external modification to /data/data/com.android.providers.settings/databases/settings.db; event=8
05-05 11:23:25.417 676-696/? D/SettingsProvider: User 0 updating our caches for /data/data/com.android.providers.settings/databases/settings.db
05-05 11:25:02.517 732-736/? D/dalvikvm: GC_CONCURRENT freed 384K, 64% free 4273K/11576K, paused 1ms+1ms, total 6ms
05-05 11:27:35.247 676-679/? D/dalvikvm: GC_CONCURRENT freed 1559K, 26% free 5963K/7980K, paused 1ms+0ms, total 9ms
05-05 11:27:40.247 840-843/? D/dalvikvm: GC_CONCURRENT freed 7601K, 26% free 26320K/35436K, paused 2ms+2ms, total 15ms
05-05 11:28:17.907 732-736/? D/dalvikvm: GC_CONCURRENT freed 388K, 64% free 4272K/11576K, paused 0ms+0ms, total 3ms
05-05 11:29:24.387 840-840/? W/PropertyValuesHolder: Method setBrightness() with type int not found on target class class kl
05-05 11:29:24.387 840-840/? W/PropertyValuesHolder: Method getBrightness() with type int not found on target class class kl
05-05 11:29:24.517 676-852/? W/ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1123 com.android.server.InputMethodManagerService.hideCurrentInputLocked:1880 com.android.server.InputMethodManagerService.hideSoftInput:1843 com.android.internal.view.IInputMethodManager$Stub.onTransact:194 com.android.server.InputMethodManagerService.onTransact:818
05-05 11:29:25.417 676-1713/? I/ActivityManager: START u0 {act=android.intent.action.DELETE dat=package:org.cocos2d.helloworld205 flg=0x10800000 cmp=com.android.packageinstaller/.UninstallerActivity} from pid 840
05-05 11:29:25.427 676-713/? W/NetworkManagementSocketTagger: setKernelCountSet(10021, 1) failed with errno -13
05-05 11:29:25.437 1901-1905/? D/dalvikvm: GC_CONCURRENT freed 24K, 2% free 4853K/4948K, paused 1ms+0ms, total 5ms
05-05 11:29:25.437 1901-1901/? D/dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 2ms
05-05 11:29:25.587 676-686/? W/ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1123 com.android.server.InputMethodManagerService.hideCurrentInputLocked:1880 com.android.server.InputMethodManagerService.windowGainedFocus:1968 com.android.internal.view.IInputMethodManager$Stub.onTransact:221 com.android.server.InputMethodManagerService.onTransact:818
05-05 11:29:25.627 676-688/? I/ActivityManager: Displayed com.android.packageinstaller/.UninstallerActivity: +194ms
05-05 11:29:26.427 676-852/? I/ActivityManager: START u0 {act=android.intent.action.VIEW cmp=com.android.packageinstaller/.UninstallAppProgress (has extras)} from pid 1901
05-05 11:29:26.427 840-909/? W/DebugConnManager: getNetworkInfo() on networkType 1
05-05 11:29:26.447 1901-1901/? D/dalvikvm: GC_FOR_ALLOC freed 1584K, 31% free 3784K/5432K, paused 4ms, total 4ms
05-05 11:29:26.447 1901-1901/? I/dalvikvm-heap: Grow heap (frag case) to 4.358MB for 635808-byte allocation
05-05 11:29:26.447 1901-1905/? D/dalvikvm: GC_CONCURRENT freed 3K, 19% free 4401K/5432K, paused 2ms+0ms, total 4ms
05-05 11:29:26.447 1901-1908/? D/dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 2ms
05-05 11:29:26.457 676-689/? I/ActivityManager: Force stopping org.cocos2d.helloworld205 appid=10028 user=-1: uninstall pkg
05-05 11:29:26.457 676-699/? W/PackageManager: Couldn't delete native library directory /data/app-lib/org.cocos2d.helloworld205
05-05 11:29:26.477 190-190/? D/keystore: calling clear_uid in state: 3
05-05 11:29:26.477 676-699/? I/ActivityManager: Force stopping org.cocos2d.helloworld205 appid=10028 user=0: pkg removed
05-05 11:29:26.497 1160-1160/? D/dalvikvm: GC_EXPLICIT freed 357K, 14% free 3430K/3960K, paused 1ms+0ms, total 5ms
05-05 11:29:26.507 1160-1160/? I/com.bignox.app.store.hd.repositories.AppRepository: delete app by package url :org.cocos2d.helloworld205
05-05 11:29:26.507 676-707/? I/InputReader: Reconfiguring input devices. changes=0x00000010
05-05 11:29:26.517 1931-1944/? D/Documents: Used cached roots for com.android.providers.downloads.documents
05-05 11:29:26.517 1931-1944/? D/Documents: Used cached roots for com.android.externalstorage.documents
05-05 11:29:26.517 1931-1944/? D/Documents: Used cached roots for com.android.providers.media.documents
05-05 11:29:26.517 1931-1944/? D/Documents: Update found 6 roots in 1ms
05-05 11:29:26.517 676-676/? D/dalvikvm: GC_EXPLICIT freed 974K, 22% free 5760K/7356K, paused 1ms+4ms, total 20ms
05-05 11:29:26.517 676-712/? I/qtaguid: Deleteing tag data with tag 0/0 for uid 10028 failed with cnt=0 errno=13
05-05 11:29:26.517 1913-1913/? W/ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1492 android.content.ContextWrapper.startService:494 android.content.ContextWrapper.startService:494 com.android.keychain.KeyChainBroadcastReceiver.onReceive:12 android.app.ActivityThread.handleReceiver:2417
05-05 11:29:26.517 676-712/? W/NetworkManagementSocketTagger: problem clearing counters for uid 10028 : errno -13
05-05 11:29:26.517 676-676/? D/BackupManagerService: Received broadcast Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:org.cocos2d.helloworld205 flg=0x4000010 (has extras) }
05-05 11:29:26.517 676-676/? V/BackupManagerService: removePackageParticipantsLocked: uid=10028 #1
05-05 11:29:26.527 1160-1160/? D/Event: No subscribers registered for event class com.bignox.app.store.hd.model.Game
05-05 11:29:26.527 1160-1160/? D/Event: No subscribers registered for event class de.greenrobot.event.NoSubscriberEvent
05-05 11:29:26.527 1160-1160/? W/DebugConnManager: getNetworkInfo() on networkType 1
05-05 11:29:26.527 676-699/? D/dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 26ms
05-05 11:29:26.527 840-840/? D/dalvikvm: GC_EXPLICIT freed 2578K, 26% free 26228K/35436K, paused 1ms+3ms, total 35ms
05-05 11:29:26.527 857-2115/? D/VoicemailCleanupService: Cleaning up data for package: org.cocos2d.helloworld205
05-05 11:29:26.537 1160-1194/? I/qtaguid: Tagging socket 66 with tag dd102e4a00000000(-586142134) for uid -1 failed errno=-13
05-05 11:29:26.537 1160-1194/? I/NetworkManagementSocketTagger: tagSocketFd(66, -586142134, -1) failed with errno-13
05-05 11:29:26.537 1160-1194/? I/qtaguid: Untagging socket 66 failed errno=-13
05-05 11:29:26.537 1160-1194/? W/NetworkManagementSocketTagger: untagSocket(66) failed with errno -13
05-05 11:29:26.537 1160-1194/? I/qtaguid: Tagging socket 66 with tag dd102e4a00000000(-586142134) for uid -1 failed errno=-13
05-05 11:29:26.537 1160-1194/? I/NetworkManagementSocketTagger: tagSocketFd(66, -586142134, -1) failed with errno-13
05-05 11:29:26.537 840-897/? W/DebugConnManager: getNetworkInfo() on networkType 1
05-05 11:29:26.537 676-717/? D/MobileDataStateTracker: default: setPolicyDataEnable(enabled=true)
05-05 11:29:26.547 1901-1901/? V/RenderScript: 0xb80b6ed0 Launching thread(s), CPUs 2
05-05 11:29:26.557 676-690/? W/Searchables: No global search activity found
05-05 11:29:26.557 676-699/? D/dalvikvm: GC_EXPLICIT freed 159K, 23% free 5737K/7356K, paused 7ms+1ms, total 32ms
05-05 11:29:26.617 676-688/? I/ActivityManager: Displayed com.android.packageinstaller/.UninstallAppProgress: +188ms
05-05 11:29:26.617 676-686/? W/ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1123 com.android.server.InputMethodManagerService.hideCurrentInputLocked:1880 com.android.server.InputMethodManagerService.windowGainedFocus:1968 com.android.internal.view.IInputMethodManager$Stub.onTransact:221 com.android.server.InputMethodManagerService.onTransact:818
05-05 11:29:26.677 1160-1194/? I/qtaguid: Untagging socket 66 failed errno=-13
05-05 11:29:26.677 1160-1194/? W/NetworkManagementSocketTagger: untagSocket(66) failed with errno -13
05-05 11:29:26.757 676-869/? W/ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1123 com.android.server.InputMethodManagerService.hideCurrentInputLocked:1880 com.android.server.InputMethodManagerService.windowGainedFocus:1968 com.android.internal.view.IInputMethodManager$Stub.onTransact:221 com.android.server.InputMethodManagerService.onTransact:818
05-05 11:29:26.957 676-713/? W/NetworkManagementSocketTagger: setKernelCountSet(10021, 0) failed with errno -13
05-05 11:29:41.607 840-909/? W/DebugConnManager: getNetworkInfo() on networkType 1
05-05 11:30:25.237 676-679/? D/dalvikvm: GC_CONCURRENT freed 398K, 20% free 5938K/7356K, paused 1ms+1ms, total 13ms
05-05 11:31:27.237 732-736/? D/dalvikvm: GC_CONCURRENT freed 386K, 64% free 4272K/11576K, paused 0ms+1ms, total 3ms
这个我回复过你了,需要在编辑器构建模板,勾选x86的编译选项。
我试过了,勾选x86,在我模拟器上是可以,但是我们做的电视机顶盒上的游戏,x86在机顶盒上启动不起来
而且在creator2.0.9构建android工程的时候,target api level 不能选择android 23 以下的?
机顶盒是什么CPU架构的?确定下,编译对应的平台即可。
一般这个堆栈是因为CPU架构不一样,由机器码转码过程出现失败引起的,请按照自己的平台需要同时编译多个平台。
x86,在我这android 4.4.2模拟器上没有问题,待会我让测试在机顶盒上给个启动闪退的日志,麻烦看看
确认下机顶盒的CPU架构?可能都不是arm或者x86!
我确人下
但是不勾选x86, 不是启动就闪退,而是,游戏进行中,一会闪退,如果架构不对,应该启动不起来吧
hellowrold 工程吗?看下闪退日志~
不是hello world,工程,闪退日志
05-01 20:08:34.407 30322-30335/com.dyf.sqphwfree D/dalvikvm: GC_FOR_ALLOC freed 469K, 16% free 4888K/5820K, paused 13ms, total 13ms
05-01 20:08:34.427 30322-30352/com.dyf.sqphwfree E/AudioMixer: AudioMixer::getTrackName out of available tracks
05-01 20:08:34.427 30322-30352/com.dyf.sqphwfree A/AudioMixerController: Assertion failed: !(name >= 0)
05-01 20:08:34.427 30322-30352/com.dyf.sqphwfree A/libc: Fatal signal 4 (SIGILL) at 0x407cd4ac (code=1), thread 30352 (AudioTrack)
05-01 20:08:34.527 30322-30335/com.dyf.sqphwfree D/dalvikvm: GC_FOR_ALLOC freed 524K, 16% free 4889K/5820K, paused 11ms, total 11ms
这是 creator 2.0.9, hello world工程闪退日志,canvas 大小是 1280 * 720
05-05 12:46:26.157 676-685/? I/ActivityManager: Process org.cocos2d.helloworld209 (pid 2368) has died.
--------- beginning of /dev/log/main
05-05 12:46:26.157 676-871/? W/MediaFocusControl: AudioFocus audio focus client died
05-05 12:46:26.157 676-871/? I/MediaFocusControl: AudioFocus removeFocusStackEntry(): removing entry for android.os.BinderProxy@4a98b4e4
05-05 12:46:26.157 676-713/? W/NetworkManagementSocketTagger: setKernelCountSet(10030, 0) failed with errno -13
05-05 12:46:26.157 676-706/? W/InputDispatcher: channel '4a9d1488 org.cocos2d.helloworld209/org.cocos2dx.javascript.AppActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
05-05 12:46:26.157 676-706/? E/InputDispatcher: channel '4a9d1488 org.cocos2d.helloworld209/org.cocos2dx.javascript.AppActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
05-05 12:46:26.157 676-871/? W/InputDispatcher: Attempted to unregister already unregistered input channel '4a9d1488 org.cocos2d.helloworld209/org.cocos2dx.javascript.AppActivity (server)'
05-05 12:46:26.157 676-685/? W/ActivityManager: Force removing ActivityRecord{4a893630 u0 org.cocos2d.helloworld209/org.cocos2dx.javascript.AppActivity t9}: app died, no saved state
05-05 12:46:26.157 676-775/? I/WindowState: WIN DEATH: Window{4a9d1584 u0 SurfaceView}
05-05 12:46:26.157 676-871/? I/WindowState: WIN DEATH: Window{4a9d1488 u0 org.cocos2d.helloworld209/org.cocos2dx.javascript.AppActivity}
05-05 12:46:26.167 186-186/? D/Zygote: Process 2368 terminated by signal (4)
05-05 12:46:26.217 676-1713/? W/ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1123 com.android.server.InputMethodManagerService.hideCurrentInputLocked:1880 com.android.server.InputMethodManagerService.windowGainedFocus:1968 com.android.internal.view.IInputMethodManager$Stub.onTransact:221 com.android.server.InputMethodManagerService.onTransact:818
05-05 12:46:26.217 813-823/? W/Binder: Caught a RuntimeException from the binder stub implementation.
java.lang.NullPointerException
at android.inputmethodservice.IInputMethodWrapper.setSessionEnabled(IInputMethodWrapper.java:280)
at com.android.internal.view.IInputMethod$Stub.onTransact(IInputMethod.java:129)
at android.os.Binder.execTransact(Binder.java:404)
at dalvik.system.NativeStart.run(Native Method)
05-05 12:46:26.217 676-1713/? W/InputMethodManagerService: Got RemoteException sending setActive(false) notification to pid 2368 uid 10030
没有遇到类似的问题,你这个问题怎么复现?麻烦提供下复现的demo和复现方法,谢谢。
大概就是你们找个机顶盒打个包安装下就行了。。
creator2.0.9,新建一个hello world工程,把canvas 的 Design Resolution 设置为 1280 * 720,打包apk,在夜神android 4.4.2模拟器上,启动后,十几秒后闪退,出现以上日志
模拟器的android版本是 4.4.2吗?
