如何将Windows 10上的Android Studio连接到Ubuntu上的Flutter SDK

问题描述

我是使用WSL的Windows 10用户,试图在ubuntu终端上运行抖动。这是我扑扑的医生要返回的东西。

[!] Android StudioFlutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    ✗ android-studio-dir = /mnt/c/ProgramData/Microsoft/Windows/Start
      Menu/Programs/Android Studio
    ✗ Unable to find bundled Java version.

如您所见,我已经设置了通向Android Studio的路径,但Flutter无法识别它。我也尝试将android studio的linux版本安装到我的ubuntu终端中,但随后它无法识别所需的dart和Flutter插件。在执行Flutter run时会返回此值。

FAILURE: Build Failed with an exception.

* Where:
Build file '/home/adrian/code/smallTALK/android/app/build.gradle' line: 24

* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin [class 'org.gradle.api.plugins.BasePlugin']
   > Could not create service of type OutputFilesRepository using ExecutionGradleServices.createOutputFilesRepository().

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD Failed in 1s

我还尝试了在Android Studio中卸载并重新安装Flutter和dart插件。 任何帮助将不胜感激。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)