OpenHarmony开发者论坛

标题: Flutter for OpenHarmony 安装pathprovider报错 [打印本页]

作者: 润开鸿_坚果    时间: 2024-7-21 09:23
标题: Flutter for OpenHarmony 安装pathprovider报错
[md]Flutter for OpenHarmony 安装pathprovider报错


ohpm install --all invoke success.

> hvigor ERROR: Schema validate failed.
> Detail: Please check the following fields.
> {
> instancePath: 'modules[1].srcPath',
> keyword: 'pattern',
> params: { pattern: '^(\\./|\\.\\./)[\\s\\S]+$' },
> message: 'must match pattern "^(\\./|\\.\\./)[\\s\\S]+$"',
> location: '/harmonyflutter/daysmatter/ohos/build-profile.json5:42:154'
> }
> {
> instancePath: 'modules[2].srcPath',
> keyword: 'pattern',
> params: { pattern: '^(\\./|\\.\\./)[\\s\\S]+$' },
> message: 'must match pattern "^(\\./|\\.\\./)[\\s\\S]+$"',
> location: 'harmonyflutter/daysmatter/ohos/build-profile.json5:54:104'
> }
> {
> instancePath: 'modules[3].srcPath',
> keyword: 'pattern',
> params: { pattern: '^(\\./|\\.\\./)[\\s\\S]+$' },
> message: 'must match pattern "^(\\./|\\.\\./)[\\s\\S]+$"',
> location: '/daysmatter/ohos/build-profile.json5:66:99'
> }

> hvigor ERROR: BUILD FAILED in 589 ms

hvigorw assembleHap --no-daemon invoke err


![image.png](https://forums-obs.openharmony.c ... 49k8qqtdfkzy7tt.png "image.png")
[/md]
作者: fengyunrenwu    时间: 2024-8-13 18:24
scrPath现在只支持相对路径,不能使用绝对路径,建议排查一下scrPath。




欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/) Powered by Discuz! X3.5