Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【Flutter】- Andorid端连不上上VM,Windows端可以 #1097

Closed
SakurasDuck opened this issue Dec 30, 2022 · 1 comment
Closed

【Flutter】- Andorid端连不上上VM,Windows端可以 #1097

SakurasDuck opened this issue Dec 30, 2022 · 1 comment
Assignees

Comments

@SakurasDuck
Copy link

flutter 本地环境
  [√] Flutter (Channel stable, 3.3.10, on Microsoft Windows [版本 10.0.22621.1037], locale zh-CN)
      • Flutter version 3.3.10 on channel stable at C:\Tools\flutter
      • Upstream repository https://github.com/flutter/flutter.git
      • Framework revision 135454af32 (2 weeks ago), 2022-12-15 07:36:55 -0800
      • Engine revision 3316dd8728
      • Dart version 2.18.6
      • DevTools version 2.15.0
      • Pub download mirror http://192.168.2.186:4001
      • Flutter download mirror https://storage.flutter-io.cn
  
  [√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
      • Android SDK at C:\Tools\AndroidSDK
      • Platform android-33, build-tools 33.0.0
      • ANDROID_HOME = C:\Tools\AndroidSDK
      • Java binary at: C:\Tools\ToolboxApps\apps\AndroidStudio\ch-0\213.7172.25.2113.9123335\jre\bin\java
      • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
      • All Android licenses accepted.
  
  [X] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
      ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
  
  [√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.3.1)
      • Visual Studio at C:\Tools\VSstudioIDEA
      • Visual Studio Community 2022 version 17.3.32811.315
      • Windows 10 SDK version 10.0.19041.0
  
  [√] Android Studio (version 2021.2)
      • Android Studio at C:\Tools\ToolboxApps\apps\AndroidStudio\ch-0\212.5712.43.2112.8815526
      • Flutter plugin version 71.0.3
      • Dart plugin version 213.7433
      • Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
  
  [√] Android Studio (version 2021.3)
      • Android Studio at C:\Tools\ToolboxApps\apps\AndroidStudio\ch-0\213.7172.25.2113.9123335
      • Flutter plugin installed
      • Dart plugin version 212.5744
      • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
  
  [√] IntelliJ IDEA Community Edition (version 2022.2)
      • IntelliJ at C:\Tools\ToolboxApps\apps\IDEA-C\ch-0\222.4345.14
      • Flutter plugin can be installed from:
         https://plugins.jetbrains.com/plugin/9212-flutter
      • Dart plugin can be installed from:
         https://plugins.jetbrains.com/plugin/6351-dart
  
  [√] Connected device (4 available)
      • SM G988N (mobile) • 127.0.0.1:5555 • android-x86    • Android 7.1.2 (API 25)
      • SM G988N (mobile) • emulator-5554  • android-x86    • Android 7.1.2 (API 25)
      • Windows (desktop) • windows        • windows-x64    • Microsoft Windows [版本 10.0.22621.1037]
      • Edge (web)        • edge           • web-javascript • Microsoft Edge 108.0.1462.54
  
  [√] HTTP Host Availability
      • All required HTTP hosts are available  

我使用Android和手机端分别运行使用了dokit插件的同一套代码,而手机端总会在连接时报错

return await vmServiceConnectUri(uri.toString(), log: StdoutLog());

然而 Service.Getinfo() 返回的路由是http://127.0.0.1:xxxx,所以Android端连不上,不知道我这样理解对不对,有没有办法解决呢?

感谢!!!

@SakurasDuck
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants