From 02f6164971616cff0fbc118986feb09210ca1a38 Mon Sep 17 00:00:00 2001 From: wwyang <137208408@qq.com> Date: Mon, 15 Jan 2024 14:34:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wwyang <137208408@qq.com> --- README.en.md | 11 ++++++++++- README.md | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/README.en.md b/README.en.md index dfacef9f1..de2200b9b 100644 --- a/README.en.md +++ b/README.en.md @@ -55,4 +55,13 @@ dependencies: Example: Add the path_provider library dependency that supports the OpenHarmony platform to a Flutter-compatible OpenHarmony project; -Reference examples: https://gitee.com/openharmony-sig/flutter_samples/tree/master/ohos/pictures_provider_demo. \ No newline at end of file +Reference examples: https://gitee.com/openharmony-sig/flutter_samples/tree/master/ohos/pictures_provider_demo. + +## FAQ + +### 1. Run `flutter pub get` displayed `"File name too long"` error + +Open the `Git Bash` or `cmd.exe`(you need to have git as an environment variable) and execute the following command: +``` + git config --global core.longpaths true +``` \ No newline at end of file diff --git a/README.md b/README.md index 78b852c49..77f2f41da 100644 --- a/README.md +++ b/README.md @@ -55,4 +55,13 @@ dependencies: 示例:在某个Flutter兼容OpenHarmony项目中加入支持OpenHarmony平台的path_provider库依赖; -可参考示例:https://gitee.com/openharmony-sig/flutter_samples/tree/master/ohos/pictures_provider_demo。 \ No newline at end of file +可参考示例:https://gitee.com/openharmony-sig/flutter_samples/tree/master/ohos/pictures_provider_demo。 + +## FAQ + +### 一、 运行 `flutter pub get` 遇到 `"File name too long"` 问题 + +打开`Git Bash`或`运行 cmd`(需要将git添加到环境变量中),执行以下命令: +``` + git config --global core.longpaths true +``` \ No newline at end of file -- Gitee