颤动无法找到Android SDK

我已经安装了flutter through AUR.我也安装了aur / android-sdk 26.0.2-1.当我跑步时,我得到:

Warning! This package referenced a Flutter repository via the .packages file that is
no longer available. The repository from which the 'Flutter' tool is currently
executing will be used instead.
  running Flutter tool: /home/dair/.Flutter-sdk
  prevIoUs reference  : /home/dair/Flutter
This can happen if you deleted or moved your copy of the Flutter repository, or
if it was on a volume that is no longer mounted or has been mounted at a
different location. Please check your system path to verify that you are running
the expected version (run 'Flutter --version' to see which Flutter is on your path).

Unable to locate a development device; please run 'Flutter doctor' for information about installing additional components.

首先,我进行了扑动 – 转换,并收到:

Flutter • channel alpha • https://github.com/Flutter/Flutter.git
Framework • revision e2f54df5ab (9 days ago) • 2017-06-02 10:43:54 -0700
Engine • revision 1f2aa07571
Tools • Dart 1.24.0-dev.3.0

不知道究竟是什么意思“看看你的路上有哪个扑腾”.接下来我跑了一个颤抖的医生,得到了:

[✓] Flutter (on Linux, locale en_US.UTF-8, channel alpha)
    • Flutter at /home/christopher/.Flutter-sdk
    • Framework revision e2f54df5ab (9 days ago), 2017-06-02 10:43:54 -0700
    • Engine revision 1f2aa07571
    • Tools Dart version 1.24.0-dev.3.0

[✗] Android toolchain - develop for Android devices
    ✗ ANDROID_HOME = /opt/android-sdk
      but Android SDK not found at this location.

[✓] Android Studio (version 2.3)
    • Android Studio at /usr/local/android-studio
    • Gradle version 3.2
    • Java version: OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] Connected devices
    • None

但是,如果我进入/ opt / android-sdk,我得到:

➜  ~ cd /opt/android-sdk 
➜  android-sdk ls
add-ons  build-tools  emulator  platforms  tools

所以看起来它就在那里.我能找到的最接近的问题是这一个React Native android build failed. SDK location not found但似乎是使用Mac而不是拱门以及其他一些差异.如何解决扑动的医生并让我的应用程序运行?

解决方法:

如果您使用的是Android Studio 3,则可以转到文件 – >配置您的平台SDK.项目结构并选择您的平台sdk.

希望这对你有用.

enter image description here

相关文章

这篇文章主要讲解了“FlutterComponent动画的显和隐怎么实现...
这篇文章主要讲解了“flutter微信聊天输入框功能如何实现”,...
本篇内容介绍了“Flutter之Navigator的高级用法有哪些”的有...
这篇文章主要介绍“Flutter怎么使用Android原生播放器”,在...
Flutter开发的android端如何修改APP名称,logo,版本号,具体...
Flutter路由管理初识路由概念一.路由管理1.1.Route1.2.Mater...