我正在尝试解决一个非常特殊的问题,该问题仅在使用Flutter构建iOS应用程序时才会发生。在我的旧笔记本电脑上,LaunchScreen.storyboard图像和应用程序之间的屏幕颜色为黑色。但是,在我的新笔记本电脑上,屏幕的颜色是白色。这是我的flutter doctor -v
的输出。
[✓] Flutter (Channel stable, v1.12.13+hotfix.9, on Mac OS X 10.15.4 19E266,
locale en-ID)
• Flutter version 1.12.13+hotfix.9 at /Users/michaellim/development/flutter
• Framework revision f139b11009 (4 weeks ago), 2020-03-30 13:57:30 -0700
• Engine revision af51afceb8
• Dart version 2.7.2
[✗] 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.
[✓] Xcode - develop for iOS and macOS (Xcode 11.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.4.1, Build version 11E503a
• CocoaPods version 1.9.1
[!] Android Studio (not installed)
• Android Studio not found; download from
https://developer.android.com/studio/index.html
(or visit https://flutter.dev/setup/#android-setup for detailed
instructions).
[✓] VS Code (version 1.44.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.9.1
[!] Connected device
! No devices available
两台机器都运行相同的设置,包括相同的Mac OS X版本。我将尝试提出一个可复制的示例,但鉴于该问题仅在某些设备中出现,因此似乎很难。