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.
< /code>
Во -первых, я запустил Flutter -version < /code> и получил: < /p>
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
< /code>
Не уверен, что именно это означает, «чтобы увидеть, какой трепет на вашем пути». Затем я запустил Flutter Doctor < /code> и получил: < /p>
[✓] 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
< /code>
Однако, если я CD в /opt /android-sdk < /code> i get: < /p>
➜ ~ cd /opt/android-sdk
➜ android-sdk ls
add-ons build-tools emulator platforms tools
< /code>
Так что выглядит так, как будто он там. Самый близкий вопрос, который я мог найти, - это: React Native Android Build не удалось. Расположение SDK не найдено, но, похоже, он использует Mac, а не Arck, а также некоторые другие различия. Как я могу разрешить Flutter Doctor
Я установил Flutter через AUR. У меня также есть AUR/Android-SDK 26.0.2-1 . Когда я запускаю Flutter Run < /code> я получаю: < /p>
[code]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. < /code>
Во -первых, я запустил Flutter -version < /code> и получил: < /p>
Не уверен, что именно это означает, «чтобы увидеть, какой трепет на вашем пути». Затем я запустил Flutter Doctor < /code> и получил: < /p>
[✓] 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 < /code>
Однако, если я CD в /opt /android-sdk < /code> i get: < /p>
➜ ~ cd /opt/android-sdk ➜ android-sdk ls add-ons build-tools emulator platforms tools < /code>
Так что выглядит так, как будто он там. Самый близкий вопрос, который я мог найти, - это: React Native Android Build не удалось. Расположение SDK не найдено, но, похоже, он использует Mac, а не Arck, а также некоторые другие различия. Как я могу разрешить Flutter Doctor [/code] и запустить мое приложение?