Content
Here is my flutter doctor:
% flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[!] Flutter (Channel master, 3.7.12-ohos, on macOS 14.4.1 23E224 darwin-x64, locale en-CN)
! Upstream repository git@gitee.com:openharmony-sig/flutter_flutter.git is not a standard remote.
Set environment variable "FLUTTER_GIT_URL" to git@gitee.com:openharmony-sig/flutter_flutter.git to dismiss this error.
[✓] HarmonyOS toolchain - develop for HarmonyOS devices
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
[✓] Chrome - develop for the web
[!] Android Studio (version 2023.3)
✗ Unable to find bundled Java version.
[✓] IntelliJ IDEA Community Edition (version 2024.1.1)
[✓] VS Code (version 1.89.0)
[✓] Connected device (3 available)
[!] HTTP Host Availability
✗ HTTP host "https://cocoapods.org/" is not reachable. Reason: An error occurred while checking the HTTP host: Failed host lookup: 'cocoapods.org'
✗ HTTP host "https://storage.flutter-io.cn" is not reachable. Reason: An error occurred while checking the HTTP host: Failed host lookup: 'storage.flutter-io.cn'
I have found two issues:
- there should have dta file in the example. without it, I can not build hap locally, so I copy one, it works fine. I noticed you add this to gitignore file.
- when I install the hap on real devices, and click the app icon to launch it, I encounter with black screen, I don't know why.
Content
Here is my flutter doctor:
I have found two issues: