diff --git a/packages/flutter_tools/lib/src/project.dart b/packages/flutter_tools/lib/src/project.dart index d1b127d50b788c7c1007f6c4a57430cbaa85cd14..0fbec68606376d8457e8a704dd062a6a42ee41d3 100644 --- a/packages/flutter_tools/lib/src/project.dart +++ b/packages/flutter_tools/lib/src/project.dart @@ -852,12 +852,10 @@ class OhosProject extends FlutterProjectPlatform { /// True if the parent Flutter project is a plugin. bool get isPlugin => parent.isPlugin; - Directory get hostAppRoot => parent.directory.childDirectory('ohos'); - /// The directory in the project that is managed by Flutter. As much as /// possible, files that are edited by Flutter tooling after initial project /// creation should live here. - Directory get managedDirectory => hostAppRoot.childDirectory('entry/src/main/ets/plugins'); + Directory get managedDirectory => ohosRoot.childDirectory('entry/src/main/ets/plugins'); /// 是否先编译.ohos/module下har,再运行hap bool get isRunWithModuleHar =>