diff --git a/README.en.md b/README.en.md index 1129291acc562e558703d9e201f421e8ec37ec92..e561d5dcc9a40687dd2c9f91a4430330d9fb70a2 100644 --- a/README.en.md +++ b/README.en.md @@ -51,6 +51,7 @@ This warehouse is based on the extension of Flutter's official engine warehouse 3. Synchronize code: In the engine directory, execute `gclient sync`; here the engine source code, official packages repository will be synchronized, and the ohos_setup task will be executed; 4. Download sdk: Download ohos-sdk-full in [the daily build](http://ci.openharmony.cn/workbench/cicd/dailybuild/dailylist), create a new folder ndk/linux/4.0 in the engine root directory, unzip the native folder in ohos-sdk-full and place it in ndk/linux/4.0 in folder; +(For mac environment, please download mac-sdk-full or mac-sdk-m1-full, and the placement directory is ndk/mac/4.0) 5. Start building: engine directory, execute `make` to start building the flutter engine that supports ohos devices. @@ -71,4 +72,6 @@ This warehouse is based on the extension of Flutter's official engine warehouse -3. The har file output path is: shell/platform/ohos/flutter_embedding/flutter/build \ No newline at end of file +3. The har file output path is: shell/platform/ohos/flutter_embedding/flutter/build + +ps: If you are using the Beta version of DevEco Studio and encounter the error "must have required property 'compatibleSdkVersion', location: build-profile.json5:17:11" when compiling the project, please refer to the "DevEco Studio Environment Configuration Guide." docx》Chapter '6 Creating Projects and Running Hello World' [Configuration Plugin] Modify the shell/platform/ohos/flutter_embedding/hvigor/hvigor-config.json5 file. \ No newline at end of file diff --git a/README.md b/README.md index 6ca3d49c0f7fcc4aff10319862f07e36e804eae1..6bff688919d3443448f07e46cb50660380a1145e 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,7 @@ Flutter Engine 3. 同步代码:在engine目录,执行`gclient sync`;这里会同步engine源码、官方packages仓,还有执行ohos_setup任务; 4. 下载sdk: 在[每日构建](http://ci.openharmony.cn/workbench/cicd/dailybuild/dailylist)下载ohos-sdk-full,在engine根目录下,新建文件夹 ndk/linux/4.0,解压ohos-sdk-full中的native文件夹并放置到ndk/linux/4.0文件夹中; +(mac环境,请下载mac-sdk-full或者mac-sdk-m1-full,放置目录为ndk/mac/4.0) 5. 开始构建:engine目录,执行`make`,即可开始构建支持ohos设备的flutter engine。 @@ -68,4 +69,6 @@ Flutter Engine ./hvigorw --mode module -p module=flutter@default -p product=default assembleHar --no-daemon ``` -3. har文件输出路径为:shell/platform/ohos/flutter_embedding/flutter/build \ No newline at end of file +3. har文件输出路径为:shell/platform/ohos/flutter_embedding/flutter/build + +ps:如果你使用的是DevEco Studio的Beta版本,编译工程时遇到“must have required property 'compatibleSdkVersion', location: build-profile.json5:17:11"错误,请参考《DevEco Studio环境配置指导.docx》中的‘6 创建工程和运行Hello World’【配置插件】章节修改 shell/platform/ohos/flutter_embedding/hvigor/hvigor-config.json5文件。 \ No newline at end of file