Do'nt work Android 5.0(Lollipop) Preview

My Application working in Android 4.4.4(Kitkat).
I tried to install the Android 5.0 Preview (Lollipop) and it does not work.
Where there is a problem?

May be related to this topic.

cocos2d-x v3.1.1
Nexus7(2013)

Just tried my game on Android 5 in the emulator, and it works fine.
I’m using:
cocos2d-x v3.2
armeabi-v7a build target (non others)
ARM(armeabi-v7a) Android5 emulator.

I’d suggest you try the same, and if it doesn’t work, post your logcat.

Hi MFHSchoonbrood.
Thank you for reply.

Specifying armeabi-v7a Do you was jni/Application.mk?

This is the log.

10-20 20:15:50.628: I/ActivityManager(550): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=jp.xxx.xxx.xxx/.AppActivity (has extras)} from uid 10012 on display 0
10-20 20:15:50.642: D/audio_hw_primary(182): select_devices: out_snd_device(2: speaker) in_snd_device(0: none)
10-20 20:15:50.642: D/ACDB-LOADER(182): ACDB -> send_afe_cal
10-20 20:15:50.642: D/audio_hw_primary(182): enable_snd_device: snd_device(2: speaker)
10-20 20:15:50.649: D/audio_hw_primary(182): enable_audio_route: apply and update mixer path: low-latency-playback
10-20 20:15:50.708: I/ActivityManager(550): Start proc jp.xxx.xxx.xxx for activity jp.xxx.xxx.xxx/.AppActivity: pid=12998 uid=10060 gids={50060, 9997, 3003} abi=armeabi
10-20 20:15:50.773: I/art(12998): Late-enabling -Xcheck:jni
10-20 20:15:50.899: D/JniHelper(12998): JniHelper::setJavaVM(0xb505c280), pthread_self() = -1225388344
10-20 20:15:50.905: W/System.err(12998): java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object reference
10-20 20:15:50.906: W/System.err(12998):  at org.cocos2dx.lib.Cocos2dxActivity.onLoadNativeLibraries(Cocos2dxActivity.java:67)
10-20 20:15:50.906: W/System.err(12998):  at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:87)
10-20 20:15:50.906: W/System.err(12998):  at jp.xxx.xxx.xxx.AppActivity.onCreate(AppActivity.java:105)
10-20 20:15:50.906: W/System.err(12998):  at android.app.Activity.performCreate(Activity.java:5933)
10-20 20:15:50.906: W/System.err(12998):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
10-20 20:15:50.906: W/System.err(12998):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251)
10-20 20:15:50.906: W/System.err(12998):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
 10-20 20:15:50.906: W/System.err(12998):  at android.app.ActivityThread.access$800(ActivityThread.java:144)
10-20 20:15:50.906: W/System.err(12998):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
10-20 20:15:50.906: W/System.err(12998):  at android.os.Handler.dispatchMessage(Handler.java:102)
10-20 20:15:50.906: W/System.err(12998):  at android.os.Looper.loop(Looper.java:135)
10-20 20:15:50.906: W/System.err(12998):  at android.app.ActivityThread.main(ActivityThread.java:5221)
10-20 20:15:50.906: W/System.err(12998):  at java.lang.reflect.Method.invoke(Native Method)
10-20 20:15:50.906: W/System.err(12998):  at java.lang.reflect.Method.invoke(Method.java:372)
10-20 20:15:50.906: W/System.err(12998):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
10-20 20:15:50.906: W/System.err(12998):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
10-20 20:15:50.938: D/Cocos2dxActivity(12998): model=Nexus 7
10-20 20:15:50.938: D/Cocos2dxActivity(12998): product=razor
10-20 20:15:50.938: D/Cocos2dxActivity(12998): isEmulator=false
10-20 20:15:51.044: I/WebViewFactory(12998): Loading com.google.android.webview version 37 (1519572-arm) (code 107601)
10-20 20:15:51.055: I/LibraryLoader(12998): Loading: webviewchromium
10-20 20:15:51.059: I/LibraryLoader(12998): Time to load native libraries: 4 ms (timestamps 3523-3527)
10-20 20:15:51.059: I/LibraryLoader(12998): Expected native library version number "",actual native library version number ""
10-20 20:15:51.075: V/WebViewChromiumFactoryProvider(12998): Binding Chromium to main looper Looper (main, tid 1) {37b54ad3}
10-20 20:15:51.076: I/LibraryLoader(12998): Expected native library version number "",actual native library version number ""
10-20 20:15:51.077: I/chromium(12998): [INFO:library_loader_hooks.cc(106)] Chromium logging enabled: level = 0, default verbosity = 0
10-20 20:15:51.092: I/BrowserStartupController(12998): Initializing chromium process, renderers=0
10-20 20:15:51.093: W/art(12998): Attempt to remove local handle scope entry from IRT, ignoring
10-20 20:15:51.108: W/chromium(12998): [WARNING:resource_bundle.cc(315)] locale_file_path.empty()
10-20 20:15:51.109: I/chromium(12998): [INFO:aw_browser_main_parts.cc(63)] Load from apk succesful, fd=32 off=107420 len=4227
10-20 20:15:51.110: I/chromium(12998): [INFO:aw_browser_main_parts.cc(78)] Loading webviewchromium.pak from, fd:33 off:229484 len:643667
10-20 20:15:51.115: W/AudioManagerAndroid(12998): Requires BLUETOOTH permission
10-20 20:15:51.127: I/Adreno-EGL(12998): <qeglDrvAPI_eglInitialize:410>: QUALCOMM Build: 10/03/14, c40da3f, Ifda814c646
10-20 20:15:51.194: W/chromium(12998): [WARNING:proxy_service.cc(901)] PAC support disabled because there is no system implementation
10-20 20:15:51.197: W/chromium(12998): [WARNING:data_reduction_proxy_settings.cc(403)] SPDY proxy OFF at startup
10-20 20:15:51.219: W/art(12998): Attempt to remove local handle scope entry from IRT, ignoring
10-20 20:15:51.226: W/AwContents(12998): onDetachedFromWindow called when already detached. Ignoring
10-20 20:15:51.247: D/OpenGLRenderer(12998): Render dirty regions requested: true
10-20 20:15:51.247: I/GCM(2319): GCM config loaded
10-20 20:15:51.250: I/GCM(2319): returning regid from cache
10-20 20:15:51.264: D/Atlas(12998): Validating map...
10-20 20:15:51.302: I/OpenGLRenderer(12998): Initialized EGL, version 1.4
10-20 20:15:51.308: D/OpenGLRenderer(12998): Enabling debug mode 0
10-20 20:15:51.380: D/cocos2d-x debug info(12998): {
10-20 20:15:51.380: D/cocos2d-x debug info(12998):  gl.supports_vertex_array_object: true
10-20 20:15:51.380: D/cocos2d-x debug info(12998):  gl.supports_BGRA8888: false
10-20 20:15:51.380: D/cocos2d-x debug info(12998):  gl.supports_ATITC: true
10-20 20:15:51.380: D/cocos2d-x debug info(12998):  gl.supports_S3TC: false
10-20 20:15:51.380: D/cocos2d-x debug info(12998):  cocos2d.x.version: cocos2d-x 3.1.1
10-20 20:15:51.380: D/cocos2d-x debug info(12998):  gl.supports_discard_framebuffer: true
10-20 20:15:51.380: D/cocos2d-x debug info(12998):  cocos2d.x.compiled_with_profiler: false
10-20 20:15:51.380: D/cocos2d-x debug info(12998):  gl.supports_PVRTC: false
10-20 20:15:51.380: D/cocos2d-x debug info(12998):  cocos2d.x.build_type: DEBUG
10-20 20:15:51.380: D/cocos2d-x debug info(12998):  gl.renderer: Adreno (TM) 320
10-20 20:15:51.380: D/cocos2d-x debug info(12998):  gl.supports_ETC1: true
10-20 20:15:51.380: D/cocos2d-x debug info(12998):  cocos2d.x.compiled_with_gl_state_cache: true
10-20 20:15:51.380: D/cocos2d-x debug info(12998):  gl.version: OpenGL ES 3.0 V@95.0 AU@  (GIT@Ifda814c646)
10-20 20:15:51.380: D/cocos2d-x debug info(12998):  gl.supports_NPOT: true
10-20 20:15:51.380: D/cocos2d-x debug info(12998):  gl.max_texture_units: 32
10-20 20:15:51.380: D/cocos2d-x debug info(12998):  gl.vendor: Qualcomm
10-20 20:15:51.380: D/cocos2d-x debug info(12998):  gl.max_texture_size: 4096
10-20 20:15:51.380: D/cocos2d-x debug info(12998): }
10-20 20:15:51.438: I/ActivityManager(550): Displayed jp.xxx.xxx.xxx/.AppActivity: +770ms
10-20 20:15:51.497: D/cocos2d-x debug info(12998): create _backToForegroundlistener for GLProgramState
10-20 20:15:51.501: D/main(12998): cocos_android_app_init
10-20 20:15:51.511: D/CCFileUtilsAndroid.cpp(12998): relative path = Effect/xxx/xxx.ExportJson
10-20 20:15:51.511: D/CCFileUtilsAndroid.cpp(12998): relative path = Effect/xxx/xxx.png
10-20 20:15:51.525: D/CCFileUtilsAndroid.cpp(12998): relative path = Effect/xxx/xxx.plist
10-20 20:15:51.526: D/cocos2d-x debug info(12998): create _backToForegroundlistener for GLProgramState
10-20 20:15:51.528: D/CCFileUtilsAndroid.cpp(12998): relative path = Scene/xxx/xxx.Json
10-20 20:15:51.529: D/cocos2d-x debug info(12998): iversion 1201
10-20 20:15:51.529: D/CCFileUtilsAndroid.cpp(12998): relative path = Scene/xxx/xxx.plist
10-20 20:15:51.530: D/CCFileUtilsAndroid.cpp(12998): relative path = Scene/xxx/xxx.png
10-20 20:15:51.588: D/CCFileUtilsAndroid.cpp(12998): relative path = Scene/xxx/xxx.plist
10-20 20:15:51.588: D/CCFileUtilsAndroid.cpp(12998): relative path = Scene/xxx/xxx.png
10-20 20:15:51.672: D/cocos2d-x debug info(12998): create _backToForegroundlistener for GLProgramState
10-20 20:15:51.673: D/cocos2d-x debug info(12998): file name == [assets/Scene/xxx/xxx.Json]
10-20 20:15:51.673: D/cocos2d-x debug info(12998): filename == xxx.Json
10-20 20:15:51.673: D/cocos2d-x debug info(12998): getAppVersion
10-20 20:15:51.675: D/CCFileUtilsAndroid.cpp(12998): relative path = fonts/xxx.ttf
10-20 20:15:51.755: D/cocos2d-x debug info(12998): create _backToForegroundlistener for GLProgramState
10-20 20:15:51.758: D/CCFileUtilsAndroid.cpp(12998): relative path = Common/Http/anim.ExportJson
10-20 20:15:51.762: D/CCFileUtilsAndroid.cpp(12998): relative path = Common/Http/anim0.png
10-20 20:15:51.785: D/CCFileUtilsAndroid.cpp(12998): relative path = Common/Http/anim0.plist
10-20 20:15:51.789: D/cocos2d-x debug info(12998): requestApi URL : /xxx/xxx/xxx
10-20 20:15:51.812: E/MediaPlayer(12998): Should have subtitle controller already set
10-20 20:15:51.812: E/MediaPlayer(12998): Should have subtitle controller already set
10-20 20:15:51.813: D/NuPlayerDriver(182): stop(0xb3e6ba80)
10-20 20:15:53.857: D/audio_hw_primary(182): disable_audio_route: reset and update mixer path: low-latency-playback
10-20 20:15:53.857: D/audio_hw_primary(182): disable_snd_device: snd_device(2: speaker)
10-20 20:15:53.940: I/wpa_supplicant(632): wlan0: CTRL-EVENT-SCAN-STARTED
10-20 20:16:01.093: I/wpa_supplicant(632): wlan0: CTRL-EVENT-SCAN-STARTED

Hi Aoki,

No problem :slight_smile: And yes, it’s specified in the application.ml.

If you compare this log to a log from running your game on a lower android device (4.4.2 for example), does anything stand out? (otherwise just post the log of your game working on an older android version as well).

Kind regards,
Michaël

Hi MFHSchoonbrood.

specified in the application.mk.

Thank you for answer.

My application work log for Android4.0.2.
(I do not have so had upgraded the terminal now.)

10-21 20:30:21.308: I/ActivityManager(1667): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=jp.xxx.xxx.xxx/.AppActivity} from pid 1981
10-21 20:30:21.308: I/REC@0(1667): am_create_activity: {1103334024,20,jp.xxx.xxx.xxx/.AppActivity,android.intent.action.MAIN,null,null,270532608}
10-21 20:30:21.392: D/dalvikvm(31302): Late-enabling CheckJNI
10-21 20:30:21.394: I/ActivityManager(1667): Start proc jp.xxx.xxx.xxx for activity jp.xxx.xxx.xxx/.AppActivity: pid=31302 uid=10160 gids={3003, 1006}
10-21 20:30:21.421: D/OpenGLRenderer(1981): Flushing caches (mode 1)
10-21 20:30:21.461: D/OpenGLRenderer(1981): Flushing caches (mode 0)
10-21 20:30:21.521: D/dalvikvm(31302): Trying to load lib /data/data/jp.xxx.xxx.xxx/lib/libcocos2dcpp.so  0x41735170
10-21 20:30:21.899: D/dalvikvm(31302): Added shared lib /data/data/jp.xxx.xxx.xxx/lib/libcocos2dcpp.so 0x41735170
10-21 20:30:21.899: D/JniHelper(31302): JniHelper::setJavaVM(0x39b3e0), pthread_self() = 1074525512
10-21 20:30:21.912: W/System.err(31302): java.lang.NullPointerException
10-21 20:30:21.930: W/System.err(31302):     at org.cocos2dx.lib.Cocos2dxActivity.onLoadNativeLibraries(Cocos2dxActivity.java:67)
10-21 20:30:21.930: W/System.err(31302):     at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:87)
10-21 20:30:21.930: W/System.err(31302):     at jp.xxx.xxx.xxx.AppActivity.onCreate(AppActivity.java:105)
10-21 20:30:21.930: W/System.err(31302):     at android.app.Activity.performCreate(Activity.java:4465)
10-21 20:30:21.931: W/System.err(31302):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
10-21 20:30:21.931: W/System.err(31302):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
10-21 20:30:21.931: W/System.err(31302):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
10-21 20:30:21.931: W/System.err(31302):     at android.app.ActivityThread.access$600(ActivityThread.java:123)
10-21 20:30:21.931: W/System.err(31302):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
10-21 20:30:21.932: W/System.err(31302):     at android.os.Handler.dispatchMessage(Handler.java:99)
10-21 20:30:21.932: W/System.err(31302):     at android.os.Looper.loop(Looper.java:137)
10-21 20:30:21.932: W/System.err(31302):     at android.app.ActivityThread.main(ActivityThread.java:4424)
10-21 20:30:21.932: W/System.err(31302):     at java.lang.reflect.Method.invokeNative(Native Method)
10-21 20:30:21.932: W/System.err(31302):     at java.lang.reflect.Method.invoke(Method.java:511)
10-21 20:30:21.933: W/System.err(31302):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
10-21 20:30:21.933: W/System.err(31302):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
10-21 20:30:21.933: W/System.err(31302):     at dalvik.system.NativeStart.main(Native Method)
10-21 20:30:21.983: D/Cocos2dxActivity(31302): model=F-05D
10-21 20:30:21.984: D/Cocos2dxActivity(31302): product=f11sha
10-21 20:30:21.984: D/Cocos2dxActivity(31302): isEmulator=false
10-21 20:30:22.122: I/GCM(16106): GCM config loaded
10-21 20:30:22.153: I/GCM(16106): returning regid from cache
10-21 20:30:22.211: D/libEGL(31302): loaded /system/lib/egl/libGLES_android.so
10-21 20:30:22.224: D/libEGL(31302): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_120.so
10-21 20:30:22.251: D/libEGL(31302): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
10-21 20:30:22.289: D/libEGL(31302): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
10-21 20:30:22.654: D/OpenGLRenderer(31302): Enabling debug mode 0
10-21 20:30:22.720: D/cocos2d-x debug info(31302): {
10-21 20:30:22.720: D/cocos2d-x debug info(31302):     gl.supports_vertex_array_object: true
10-21 20:30:22.720: D/cocos2d-x debug info(31302):     gl.supports_BGRA8888: true
10-21 20:30:22.720: D/cocos2d-x debug info(31302):     gl.supports_ATITC: false
10-21 20:30:22.720: D/cocos2d-x debug info(31302):     gl.supports_S3TC: false
10-21 20:30:22.720: D/cocos2d-x debug info(31302):     cocos2d.x.version: cocos2d-x 3.1.1
10-21 20:30:22.720: D/cocos2d-x debug info(31302):     gl.supports_discard_framebuffer: true
10-21 20:30:22.720: D/cocos2d-x debug info(31302):     cocos2d.x.compiled_with_profiler: false
10-21 20:30:22.720: D/cocos2d-x debug info(31302):     gl.supports_PVRTC: true
10-21 20:30:22.720: D/cocos2d-x debug info(31302):     cocos2d.x.build_type: DEBUG
10-21 20:30:22.720: D/cocos2d-x debug info(31302):     gl.renderer: PowerVR SGX 540
10-21 20:30:22.720: D/cocos2d-x debug info(31302):     gl.supports_ETC1: true
10-21 20:30:22.720: D/cocos2d-x debug info(31302):     cocos2d.x.compiled_with_gl_state_cache: true
10-21 20:30:22.720: D/cocos2d-x debug info(31302):     gl.version: OpenGL ES 2.0 build 1.8@945322
10-21 20:30:22.720: D/cocos2d-x debug info(31302):     gl.supports_NPOT: true
10-21 20:30:22.720: D/cocos2d-x debug info(31302):     gl.max_texture_units: 8
10-21 20:30:22.720: D/cocos2d-x debug info(31302):     gl.vendor: Imagination Technologies
10-21 20:30:22.720: D/cocos2d-x debug info(31302):     gl.max_texture_size: 2048
10-21 20:30:22.720: D/cocos2d-x debug info(31302): }
10-21 20:30:22.754: I/ActivityManager(1667): Displayed jp.xxx.xxx.xxx/.AppActivity: +1s382ms
10-21 20:30:22.754: I/REC@0(1667): Displayed jp.xxx.xxx.xxx/.AppActivity: +1s382ms
10-21 20:30:22.766: W/ActivityManager(1667): Unable to start service Intent { act=com.extscreen.service }: not found
10-21 20:30:22.766: W/ActivityManager(1667): Unable to start service Intent { act=com.extscreen.service }: not found
10-21 20:30:22.783: D/cocos2d-x debug info(31302): create _backToForegroundlistener for GLProgramState
10-21 20:30:22.804: D/main(31302): cocos_android_app_init
10-21 20:30:22.809: D/OpenGLRenderer(1981): Flushing caches (mode 1)
10-21 20:30:22.844: D/CCFileUtilsAndroid.cpp(31302): relative path = Effect/xxx/xxx.ExportJson
10-21 20:30:22.845: D/CCFileUtilsAndroid.cpp(31302): relative path = Effect/xxx/xxx0.png
10-21 20:30:22.869: D/CCFileUtilsAndroid.cpp(31302): relative path = Effect/xxx/xxx0.plist
10-21 20:30:22.873: D/cocos2d-x debug info(31302): create _backToForegroundlistener for GLProgramState
10-21 20:30:22.879: D/CCFileUtilsAndroid.cpp(31302): relative path = Scene/xxx/xxx.Json
10-21 20:30:22.880: D/cocos2d-x debug info(31302): iversion 1201
10-21 20:30:22.880: D/CCFileUtilsAndroid.cpp(31302): relative path = Scene/xxx/xxx0.plist
10-21 20:30:22.883: D/CCFileUtilsAndroid.cpp(31302): relative path = Scene/xxx/xxx0.png
10-21 20:30:22.985: D/CCFileUtilsAndroid.cpp(31302): relative path = Scene/xxx/xxx1.plist
10-21 20:30:22.987: D/CCFileUtilsAndroid.cpp(31302): relative path = Scene/xxx/xxx1.png
10-21 20:30:22.988: I/LteServiceStateTracker(1924): handleMessage event = 1008
10-21 20:30:23.133: D/cocos2d-x debug info(31302): create _backToForegroundlistener for GLProgramState
10-21 20:30:23.136: D/cocos2d-x debug info(31302): file name == [assets/Scene/xxx/xxx.Json]
10-21 20:30:23.136: D/cocos2d-x debug info(31302): filename == xxx.Json
10-21 20:30:23.137: D/cocos2d-x debug info(31302): getAppVersion
10-21 20:30:23.140: D/CCFileUtilsAndroid.cpp(31302): relative path = fonts/xxx.ttf
10-21 20:30:23.246: D/cocos2d-x debug info(31302): create _backToForegroundlistener for GLProgramState
10-21 20:30:23.249: D/CCFileUtilsAndroid.cpp(31302): relative path = Common/Http/anim.ExportJson
10-21 20:30:23.256: D/CCFileUtilsAndroid.cpp(31302): relative path = Common/Http/anim0.png
10-21 20:30:23.288: D/CCFileUtilsAndroid.cpp(31302): relative path = Common/Http/anim0.plist
10-21 20:30:23.294: D/cocos2d-x debug info(31302): requestApi URL : /xxx/xxx/xxx
10-21 20:30:23.336: E/ASFDummyExtractor(1448): isASFParserAvailable 
10-21 20:30:23.366: D/ASFExtractor(1448): SniffASF Entered
10-21 20:30:23.366: D/ASFExtractor(1448): SniffASF ASF Header object not found 
10-21 20:30:23.395: I/AudioPolicyManagerALSA(1448): startOutput() output 1, stream 3, session 16 sampleRate 44100
10-21 20:30:23.395: E/AudioPolicyManagerBase(1448): unknown stream type
10-21 20:30:23.395: E/AudioPolicyManagerBase(1448): unknown stream type
10-21 20:30:23.395: E/AudioPolicyManagerBase(1448): unknown stream type
10-21 20:30:23.395: E/AudioPolicyManagerBase(1448): unknown stream type
10-21 20:30:23.398: I/DMSettingsProvider(1667): DolbyMobile OFF
10-21 20:30:23.401: I/DMSettingsProvider(1667): update() DMSETTINGS_PLAYSTATE_CHANGED playstate=1 content=0
10-21 20:30:23.404: I/audio_idle_manager(1448): + idle_out_start : idle_status(1), mic_mute(0), bt_nrec(1), headset_mic(0), manner(1), m_standby(1), p_standby(1)
10-21 20:30:23.404: I/audio_idle_manager(1448): - idle_out_start : idle_status(1), mic_mute(0), bt_nrec(1), headset_mic(0), manner(1), m_standby(1), p_standby(1)
10-21 20:30:23.405: I/AudioPlayer(1448): mLatencyUs = 320000
10-21 20:30:23.425: D/AudioSpeexSRC(1448): AudioResamplerSpeex::init() mChannelCount=2, mInSampleRate=48000, mSampleRate=48000, mQuality=2
10-21 20:30:23.425: D/audioLibScmst(1448): audioLibScmst_notifyActiveTracks 1
10-21 20:30:23.425: D/audioLibScmst(1448): handle_num 0 countActiveTracks 1
10-21 20:30:23.425: D/audioLibScmst(1448): param 3
10-21 20:30:23.425: D/AudioSpeexSRC(1448): AudioResamplerSpeex::setSampleRate() mChannelCount=2, mInSampleRate=48000->44100, mSampleRate=48000, mQuality=2
10-21 20:30:23.427: I/audio_idle_manager(1448): + idle_out_write : idle_status(1), mic_mute(0), bt_nrec(1), headset_mic(0), manner(1), m_standby(1), p_standby(1)
10-21 20:30:23.438: D/fj_audio_path(1448): ! fj_set_audio_output_path:devices=0x40000 type=4 on=1
10-21 20:30:23.438: D/fj_audio_path(1448): [20:30:23.438365] ! output_path_close:RCV Playback CLOSE!
10-21 20:30:23.438: D/fj_audio_path(1448): [20:30:23.438548] ! output_path_close:SPK Playback CLOSE!
10-21 20:30:23.438: D/fj_audio_path(1448): [20:30:23.438701] ! output_path_close:HPN Playback CLOSE!
10-21 20:30:23.438: D/fj_audio_path(1448): [20:30:23.438823] ! output_path_close:BTH Playback CLOSE!
10-21 20:30:23.439: D/fj_audio_path(1448): [20:30:23.438975] ! output_path_close:LIN Playback CLOSE!
10-21 20:30:23.439: D/fj_audio_path(1448): [20:30:23.439006] ! set_output_path:devices=0x40000 type=4 on=1
10-21 20:30:23.443: I/audio_idle_manager(1448): - idle_out_write : idle_status(1), mic_mute(0), bt_nrec(1), headset_mic(0), manner(1), m_standby(1), p_standby(1)
10-21 20:30:23.451: I/BATD(1581): [fj_batd]Present:[1] Status:[2] Level:[59] Voltage:[3] Drxctrl:[1] Temperature:[136]
10-21 20:30:23.533: D/audioLibScmst(1448): audioLibScmst_notifyActiveTracks 1
10-21 20:30:23.533: D/audioLibScmst(1448): handle_num 0 countActiveTracks 1
10-21 20:30:23.533: D/audioLibScmst(1448): param 3

Here is where it seems to go wrong:

10-20 20:15:51.789: D/cocos2d-x debug info(12998): requestApi URL : /xxx/xxx/xxx
10-20 20:15:51.812: E/MediaPlayer(12998): Should have subtitle controller already set
10-20 20:15:51.812: E/MediaPlayer(12998): Should have subtitle controller already set
10-20 20:15:51.813: D/NuPlayerDriver(182): stop(0xb3e6ba80)
10-20 20:15:53.857: D/audio_hw_primary(182): disable_audio_route: reset and update mixer path: low-latency-playback
10-20 20:15:53.857: D/audio_hw_primary(182): disable_snd_device: snd_device(2: speaker)
10-20 20:15:53.940: I/wpa_supplicant(632): wlan0: CTRL-EVENT-SCAN-STARTED
10-20 20:16:01.093: I/wpa_supplicant(632): wlan0: CTRL-EVENT-SCAN-STARTED

In your 4.x version log, you’re audio layer is created here…
Not sure if that should actually crash your application tho, just should disable sound.

What happens is you try and run the default helloworld example with the cocos sdk on Android 5. Do you get the same issue?

Kind regards,
Michaël

I’ll try to investigate those related to the audio layer.

This sample worked in android5.
cocos2d-x-3.1.1\tests\cpp-tests

I’ll try to investigate also the difference of sample and their apps.

1 Like

I write the progress.
A result of the investigation seems the same as this person.
SimpleAudioEngine :: getInstance () -> playBackgroundMusic will freeze

I worked also stopped in the sample.
textcocos2d-x-3.1.1\tests\cpp-tests
Audio - CocosDenshion

I’ve also posted to Android bug tracker: https://code.google.com/p/android/issues/detail?id=77988
regarding the sscanf. Someone from Android team said to use NDK 10c. I switched to cocos2dx-3.3rc0 and NDK 10c and still have the same issues.

1 Like

Hi tmsoft.
Thank you for sharing information :slight_smile:

Your welcome! I also confirmed that 10c does fix the sscanf freeze, but does not fix the media player freeze.

I can’t get my game to work anymore on lollypop either.

My game loads (it’s displaying the loading screen and plays a loading sound) then it’s done and switches to the game scene (doing more initializations), and that’s it… I just hang at a black screen and my native activity doesn’t get any events anymore.

Java code still runs, as I do get ads on my black screen :smile:

I will report the progress.
My app was running on lollipop.

I can confirm the same results on an actual android 5 device (Nexus 9): after my loading is done, black screen. Most likely because I start using fonts at that point, and I need to switch to Android NDK 10c. But then I run into the rand not found issues… Was hoping for an NDK fix, but looks like I’m going to have to investigate this afterall…

Hi, I had the same error “rand not found” compiling with NDK 10c 64bits… I have changed the NDK version to 10c 32 bits and it is compiling and working now. The current problem is that BmFonts are not showing, only a blank space where the label should be… anyone has that error?

Thank you!!