[Android] cocos2d-js v3.1 cc.log not showing on catlog

Is there a way to print logs in Android? Since cc.log is not printing anything to catlog.

Hi,

Edit file /jni/Application.mk in android.proj and add DCOCOS2D_DEBUG=1

alter line:
APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char
to
APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char -DCOCOS2D_DEBUG=1

export Package to APK Android

@Vandrak Thanks for your answer
I’ve found another solution. Just use console.log()

Cheers :smile:

1 Like