From c388a0dd59685a31d8d038c376148597b70b0209 Mon Sep 17 00:00:00 2001 From: FeiShen98 <8831379+feishen98@user.noreply.gitee.com> Date: Wed, 16 Jun 2021 18:00:02 +0800 Subject: [PATCH] fix build.gradle ohos.jar path README.md detailed description input ohos.jar method --- EventBus/build.gradle | 2 +- README.md | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/EventBus/build.gradle b/EventBus/build.gradle index 1795ee3..3ac5296 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 0721ffc..24d57d5 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: ``` -- Gitee