diff --git a/EventBus/build.gradle b/EventBus/build.gradle index 1795ee314e04548410f4393d3d2156326469e462..3ac5296baa2726f07aaef05b8089c15a0606f203 100644 --- a/EventBus/build.gradle +++ b/EventBus/build.gradle @@ -8,7 +8,7 @@ targetCompatibility = "8" dependencies { compileOnly fileTree(dir: 'libs', include: ['*.jar']) - implementation files('C:\\harmonyohos\\ohos.jar') +// implementation files('libs/ohos.jar') } sourceSets { diff --git a/README.md b/README.md index 0721ffcbf699badcfc4854b75fc9d3d09d93d36a..24d57d5ad6503b04336b3d29539a1f01ed58bc08 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,14 @@ tasks.withType(JavaCompile){ options.compilerArgs +=["-AeventBusIndex=org.greenrobot.eventbus.MyEventBusIndex"] } ``` +------------ +------------ + If you the project run success,you need at the EventBus library add libs file input "ohos.jar" + "ohos.jar" in the HarmonySDK path folder or the Project ->open the External Libraries -> SDK ->ohos.jar + and at the EventBus library build.gradle add + ``` +implementation files('libs/ohos.jar') +``` ------------ You need to take three steps to run the demo: ```