How to show android log on creator

Hello community!

Just a simple question, there is any way to run my game on my android and see console.log messages on creator’s console? thanks

I don’t think that is possible in creator’s console. But you can archive that in Android Studio.

You can use either.

cc.log("Hello world cc.log");
console.log("Hello world console.log");

Then follow this steps.

  1. In Cocos Creator, Go to Project → Build
  2. Click Build → Compile (make sure it success)
  3. Pick your apk at {your_project_dir}\build\jsb-default\simulator\android\
  4. Install apk in Android device and open it.
  5. In Android Studio, at Android Monitor
  6. Choose deivce
  7. Choose your package name
  8. Choose log level (at least debug)
  9. Filter with “D/cocos2d-x debug info:”
  10. Then you will see your log.

Example

answer forum 1_01

1 Like

thats solve my problem, thanks :slight_smile:

i’m curious about, cocos creator has through wifi test feature or easier way to test games on mobile?
or maybe do you have a workflow for mobile development?

thanks

You should ask that in another topic. I think. :slight_smile:

I’ll do that, thanks