gpt4 book ai didi

android - Flutter IntelliJ 插件中没有控制台输出?

转载 作者:IT老高 更新时间:2023-10-28 12:31:18 24 4
gpt4 key购买 nike

我正在使用Flutter + Android Studio/Intellij插件进行 flutter 面。当我在IDE中运行应用程序时,似乎有一个空的控制台窗口,因此我无法从该窗口查看 print 语句。

我能够查看tomcat日志中的输出,因此我不会被这个问题所阻止。 Is there any reason why there is no output/functionality is my run window?

更新

Tried running using flutter run on commandline and I get my print statements on there.所以这仅限于 Android Studio。

我的期望

enter image description here

我得到了什么

enter image description here

Versions and App Information

Flutter Doctor 输出

D:\manual-applications\flutter\bin\flutter.bat doctor --verbose
[√] Flutter (Channel beta, v1.0.0, on Microsoft Windows [Version 10.0.16299.785], locale en-US)
• Flutter version 1.0.0 at D:\manual-applications\flutter
• Framework revision 5391447fae (3 weeks ago), 2018-11-29 19:41:26 -0800
• Engine revision 7375a0f414
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[!] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at D:/android-development/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• ANDROID_HOME = D:/android-development/sdk
• Java binary at: D:\android-development\android-studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
X Android license status unknown.

[√] Android Studio (version 3.2)
• Android Studio at D:\android-development\android-studio
• Flutter plugin version 31.3.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[!] IntelliJ IDEA Community Edition (version 2018.2)
• IntelliJ at C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2018.2.2
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.io/intellij-setup/#installing-the-plugins

[√] VS Code, 64-bit edition (version 1.28.2)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 2.21.1

[√] Connected device (1 available)
• Android SDK built for x86 64 • emulator-5554 • android-x64 • Android 7.1.1 (API 25) (emulator)

最佳答案

当您从运行窗口隐藏控制台时,会发生这种情况。即,按这里。

不幸的是,Android Studio 没有显示最小化的图标,我们可以点击它来恢复它。此按钮也没有分配任何快捷方式。
您可以通过在 Debug模式下运行应用程序来恢复它。您可以在此处查看日志,也可以将其杀死并在运行模式下再次运行,您将看到您的日志。

附:如果您即使在 Debug模式下也看不到控制台。在窗口的右上角寻找这样的图标。
enter image description here

关于android - Flutter IntelliJ 插件中没有控制台输出?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53874157/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com