How to print to the console in Android Studio?

后端 未结 7 1451
悲&欢浪女
悲&欢浪女 2020-11-29 16:57

I just downloaded Android Studio for Linux from: http://developer.android.com/sdk/installing/studio.html

I\'m wondering how to print to the console?

Neither

7条回答
  •  粉色の甜心
    2020-11-29 17:36

    Run your application in debug mode by clicking on

    enter image description here

    in the upper menu of Android Studio.

    In the bottom status bar, click 5: Debug button, next to the 4: Run button.

    Now you should select the Logcat console.

    In search box, you can type the tag of your message, and your message should appear, like in the following picture (where the tag is CREATION):

    enter image description here

    Check this article for more information.

提交回复
热议问题