[英]Flutter doctor problem “Android Studio not found” in Android Studio Portable setup
I created a portable installation of Android Studio.我创建了 Android Studio 的便携式安装。 That works (e:\android) I installed Flutter in e:\src (this flutter configuration has worked) I want to get this running有效(e:\android)我在 e:\src 中安装了 Flutter(这个 flutter 配置有效)我想让它运行
Flutter doctor -v gives me the common error: Flutter doctor -v 给了我常见的错误:
Android Studio (not installed) Android Studio not found Android Studio(未安装) Android Studio 未找到
I did the following我做了以下
I am trying to figure out what exactly causes the error.我试图找出究竟是什么导致了错误。 I played with ANDROID_HOME settings but I'm not sure what the exact location shoud be based on e:/android我玩过 ANDROID_HOME 设置,但我不确定应该基于 e:/android 的确切位置
An explanation of the cause or a good solution would be welcome.欢迎解释原因或好的解决方案。 All threads I can find refer to regular AS installations, not to portable installation.我能找到的所有线程都是指常规 AS 安装,而不是便携式安装。
Thanks谢谢
steps to reproduce config your android sdk重现配置您的 android sdk 的步骤
flutter config --android-sdk /media/user/androidsdk
export your android sdk to path将您的 android sdk 导出到路径
export PATH="$PATH:/media/user//androidsdk"
now you can use an editor of your choice现在您可以使用您选择的编辑器
Android Studio (not installed) Android Studio not found Android Studio(未安装) Android Studio 未找到
If youre a begginer to flutter it should not make you worry that your installation is incomplete.You can use an editor of your liking vscode, etc...如果您是 flutter 的初学者,则不必担心安装不完整。您可以使用自己喜欢的编辑器 vscode 等...
to read more on this check this issues https://github.com/flutter/flutter/issues/25719阅读更多关于这个检查这个问题https://github.com/flutter/flutter/issues/25719
https://github.com/flutter/flutter/issues/27283 https://github.com/flutter/flutter/issues/27283
PS i'm on linux PS我在linux
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.