You are not logged in.
Hi,
After installing flutter from AUR I'm having this error:
$ flutter doctor -v
...
[!] Android toolchain - develop for Android devices
• Android SDK at /opt/android-sdk
• Android NDK location not configured (optional; useful for native profiling support)
• ANDROID_HOME = /opt/android-sdk
✗ Android SDK is missing command line tools; download from https://goo.gl/XxQghQ
• Try re-installing or updating your Android SDK,
visit https://flutter.io/setup/#android-setup for detailed instructions.
...
All the dependencies seem in place:
$ pacman -Ss android-sdk
archlinuxcn/android-sdk 26.1.1-1 [installed]
Google Android SDK
archlinuxcn/android-sdk-build-tools r28.0.3-1 [installed]
Build-Tools for Google Android SDK (aapt, aidl, dexdump, dx, llvm-rs-cc)
archlinuxcn/android-sdk-platform-tools 28.0.1-1 [installed]
Platform-Tools for Google Android SDK (adb and fastboot)
What is still missing?
Offline
Did you log out and log back in after installing the build and platform tools? Otherwise you are missing an entry in the path environment variable
/etc/profile.d/android-sdk-platform-tools.sh
export PATH="${PATH}:/opt/android-sdk/platform-tools"
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
export, check.
relogin, check.
Something else...
Offline
Did you install the android-platform package?
Last edited by progandy (2018-10-15 12:04:38)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
$ yaourt -S android-platform
resolving dependencies...
looking for conflicting packages...
Packages (1) android-platform-28_r06-2
...
$ flutter doctor -v
Warning! The 'flutter' tool you are currently running is from a different Flutter
repository than the one last used by this package. The repository from which the
'flutter' tool is currently executing will be used instead.
running Flutter tool: /opt/flutter
previous reference : /home/alexey/mobile/flutter
This can happen when you have multiple copies of flutter installed. 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).
Oops; flutter has exited unexpectedly.
Sending crash report to Google.
Crash report sent (report ID: 5c4ccfc5f196edcb)
Crash report written to /home/alexey/spaces/dart/flutter/flutter_blue/example/flutter_02.log;
please let us know at https://github.com/flutter/flutter/issues.
UPD:
from flutter.log:
FileSystemException: FileSystemException: Cannot open file, path = '/opt/flutter/bin/cache/flutter_version_check.stamp' (OS Error: Permission denied, errno = 13)
It's flutter package from AUR. Do I have to do something with my permissions?
Last edited by Llama (2018-10-26 09:29:28)
Offline