About Android Studio and Flutter Inspector

无人久伴 提交于 2021-02-10 14:21:45

问题


So I normally use Flutter Inspector on a daily basis and lately, after some updates which I cannot distinguish, Flutter Inspector stopped working. Here's what I get when I open it:

Setting up DevTools Failed

Error Setting up DevTools Failed

It is probably related to some versioning, but I can't figure it out how to fix this. Here are my results for:

Flutter Doctor

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 1.22.2, on Microsoft Windows [Version 10.0.18362.592], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[!] Android Studio (version 4.1.0)
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
[√] VS Code (version 1.50.1)
[√] Connected device (1 available)

Notice that Doctor complains about the plugin in Android Studio, but it is actually installed and running. I can compile and run apps perfectly fine. It's just the inspector that doesn't work.

Flutter version

Flutter 1.22.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 84f3d28555 (3 weeks ago) • 2020-10-15 16:26:19 -0700
Engine • revision b8752bbfff
Tools • Dart 2.10.2

Android Studio

Android Studio 4.1
Build #AI-201.8743.12.41.6858069, built on September 23, 2020
Runtime version: 1.8.0_242-release-1644-b01 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 494M
Cores: 8
Registry: ide.new.welcome.screen.force=true
Non-Bundled Plugins: org.jetbrains.kotlin, com.huawei.deveco.hms, Dart, io.flutter

回答1:


The flutter plugin of the IDE, is not compatible with the current version of the SDK, so it does not show you that error, you could change to the dev channel of the Flutter SDK.



来源:https://stackoverflow.com/questions/64655867/about-android-studio-and-flutter-inspector

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!