在 Eclipse 上,为 Android 开发,我在哪里可以看到 System.out.println() 的输出?

发布于 2024-10-09 22:47:38 字数 134 浏览 1 评论 0原文

我在 eclipse 上使用 Android 开发工具,加上 Java(显然)。我对 Java 很陌生,我不知道在哪里可以看到输出。我尝试了显而易见的方法:控制台,但字符串不在那里。我尝试了 Logcat,但该字符串也不存在。

提前致谢!

I'm using the Android Developer Tools on eclipse, plus Java (obviously). I'm quite new to Java, and i don't know where the output can be seen. I tried the obvious: the console, but the string wasn't there. I tried the Logcat, but the string wasn't there either.

Thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

梦里兽 2024-10-16 22:47:38

您不在 Android 上使用 System.out.println()。您可以使用 Log.v()Log.d() 等。

此处的文档

You don't use System.out.println() on Android. You use Log.v(), Log.d(), etc.

Documentation here.

花之痕靓丽 2024-10-16 22:47:38

这会显示在 Logcat 中。进入Windows - Show Views -> 可以选择显示Logcat安卓->日志猫。

This is displayed in the Logcat. You can choose to display Logcat if you go to Windows - Show Views -> Android -> Logcat.

若言繁花未落 2024-10-16 22:47:38

如果您希望在电话上获得视觉响应,请使用 Toast。

http://developer.android.com/guide/topics/ui/notifiers /toasts.html

If you want a visual response on the phone, use Toast.

http://developer.android.com/guide/topics/ui/notifiers/toasts.html

花辞树 2024-10-16 22:47:38

您可以使用 Log.e()、Log.v()、Log.d() 来显示输出或异常,您可以在 logcat 中看到。

You can use Log.e(),Log.v(),Log.d() for displaying output or exception and you can see that in logcat.

时光礼记 2024-10-16 22:47:38

@EboMike 是对的,无论如何,你可以在 LogCat 视图中看到输出

 Window --> Show View --> LogCat

假设你已经安装了 Android 的 ADT 插件。

@EboMike is right, anyway, you can see the output in the LogCat view

 Window --> Show View --> LogCat

Assumes, that you have Android's ADT plugin installed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文