android-studio - 如何在 Flutter 项目中使用 Android Studio 3 中的 Android Profiler 和 Logcat

标签 android-studio flutter logcat android-profiler

通过 Android Studio 使用 API 28 或 27 运行模拟器,Flutter 配置成功启动应用程序,并且没有其他问题,即所有其他功能都工作正常。

为什么 Android Profiler 未检测到设备?没有描述类似问题的资源。

尝试查看 Logcat 时也会出现类似的问题:

最佳答案

要使这两个工具正常工作,需要打开 android 模块。您可以通过在项目 View 中打开 android 目录的 Flutter 上下文菜单或导航到 Tools -> Flutter 来完成此操作:

此后,即当 Android 模块在 Android Studio 中开放时,Android Profiler 和 Logcat 将正常工作。

另请参阅:https://flutter.io/docs/development/tools/android-studio#editing-android-code-in-android-studio-with-full-ide-support

关于android-studio - 如何在 Flutter 项目中使用 Android Studio 3 中的 Android Profiler 和 Logcat,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54564732/

相关文章:

android - 在android中实现while循环

android-studio - E/ModuleIdSetter : exception when setting module id. 这个错误是什么意思?

dart - Flutter:_InternalLinkedHashMap 没有实例 > 方法 'cast'

dart - 如何在 BottomNavigationBarItem 中绝对定位徽章

django - 如何删除 Flutter 中的 "XMLHttpRequest error"? (Django 后端,Flutter 前端)

android - 有没有办法向 android.util.log 添加监听器?

java - 新补丁后 Android Studio 无法启动

Android: 错误:(464) 属性 "dividerPadding"已经被定义

android - Android Studio 中带有 apache 库的意外顶级异常

android - Android:声音播放错误。压缩问题?