Flutter安装配置报错求助:执行flutter doctor --android-licenses时持续遇问题
Flutter安装配置报错求助:执行flutter doctor --android-licenses时持续遇问题
最近我跟着Alan Pope的博客《Getting started with Flutter》在Ubuntu上配置Flutter,结果在执行flutter doctor --android-licenses的时候接连碰壁,实在没辙了来求助!
我先是按照博客里的指令执行了:
flutter config --android-studio-dir /snap/android-studio/current/android-studio
之后运行flutter doctor --android-licenses,直接弹出错误:
Could not find the Android Studio installation at the manually configured path "/snap/android-studio/current/android-studio".
我猜是路径设错了,就把命令改成了:
flutter config --android-studio-dir /snap/android-studio/current
再跑flutter doctor --android-licenses,又遇到新的报错:
Android sdkmanager not found. Update to the latest Android SDK and ensure that the cmdline-tools are installed to resolve this.
看到提示说要解决SDK相关的问题,我就执行了sudo apt install android-sdk,结果安装完再试,还是跳出同样的错误。
现在我真的卡在这里了,有没有大佬能指点一下该怎么推进?
PS:我已经试着在Android Studio的菜单里找SDK Manager了,但还没找到有效的解决办法...
备注:内容来源于stack exchange,提问作者John Rose
相关产品推荐
相关产品推荐

