通过 Android Studio 使用 API 28 或 27 运行模拟器,Flutter 配置成功启动应用程序,并且没有其他问题,即所有其他功能都工作正常。
为什么 Android Profiler 未检测到设备?没有描述类似问题的资源。
尝试查看 Logcat 时也会出现类似的问题:
最佳答案
要使这两个工具正常工作,需要打开 android
模块。您可以通过在项目 View 中打开 android
目录的 Flutter 上下文菜单或导航到 Tools -> Flutter
来完成此操作:
此后,即当 Android 模块在 Android Studio 中开放时,Android Profiler 和 Logcat 将正常工作。
关于android-studio - 如何在 Flutter 项目中使用 Android Studio 3 中的 Android Profiler 和 Logcat,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54564732/