对将代码签入Flutter项目的时间进行测试。
我可以使用安装了flutter SDK的Linux构建代理访问GitHub和TeamCity的企业实例。
运行flutter test
时出现错误–
$ flutter test
The current Flutter SDK version is 0.0.0-unknown.
Because your_friend_ken depends on webview_flutter any which requires Flutter SDK version >=0.11.9 <2.0.0, version solving failed.
Running "flutter pub get" in e3c3b5eae44b8865...
pub get failed (1)
当我运行flutter doctor
–
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v0.0.0-unknown, on Linux, locale en_US.UTF-8)
[✗] 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.dev/setup/#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, set ANDROID_HOME to that location.
You may also want to add it to your PATH environment variable.
[!] Android Studio (not installed)
[!] Connected device
! No devices available
是否有更好的自动化Flutter项目测试的方法?
应该/如何通过命令行在Linux vm上安装Android Studio?