微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

颤动无法找到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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐