繁体   English   中英

Android Studio中的Dart。 没有设备可以运行applicaton

[英]Dart in Android Studio. No device to run applicaton

我无法运行应用程序,因为列表上没有设备。 我试图创建AVD并连接真实设备。 我已安装curl,已设置Android SDK路径,已接受flutter许可证。 我有Ubuntu 16.04.4

在项目目录中输出flutter run --verbose输出:

 flutter: command not found

我有颤抖的路径:

$ export PATH=/home/joe/flutter/bin:$PATH
$ echo $PATH
/home/joe/flutter/bin:home/joe/flutter/bin:home/joe/flutter/bin:/home/joe/bin:/home/joe/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

现在,我将路径放置到.bashrc并运行source ~/.bashrc ,我是否放置了路径的正确方法?

# set PATH so it includes user's private bin directories

    export PATH=/home/joe/flutter/bin:$PATH
    export ANDROID_HOME=$HOME/Android/SDK
    export PATH=$PATH:$ANDROID_HOME/tools

将路径添加到.bashrc我运行flutter doctor

$ /home/joe/flutter/bin/flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[!] Flutter (Channel master, v0.5.7-pre.102, on Linux, locale en_US.UTF-8)
    ✗ Downloaded executables cannot execute on host.
      See https://github.com/flutter/flutter/issues/6207 for more information
      On Debian/Ubuntu/Mint: sudo apt-get install lib32stdc++6
      On Fedora: dnf install libstdc++.i686
      On Arch: pacman -S lib32-libstdc++5

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.io/setup/#android-setup for detailed instructions).
      If Android SDK has been installed to a custom location, set $ANDROID_HOME to that location.
[✓] Android Studio (version 3.1)
[!] IntelliJ IDEA Community Edition (version 2018.1)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
[!] Connected devices
    ! No devices available

! Doctor found issues in 4 categories.

您必须设置一个环境变量。

您可以在此处检查以使用Android Studio安装Flutter SDK

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM