From 391bfa7bc720fa9d10dded5eb5b2ecc3776b0fb5 Mon Sep 17 00:00:00 2001 From: wjt983049539 Date: Mon, 5 Jul 2021 19:18:15 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index c110b0a..40a0245 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,10 @@ ...... } ``` +在sdk6,DevEco Studio2.2 Beta1下项目可直接运行 +如无法运行,删除项目.gradle,.idea,build,gradle,build.gradle文件, +并依据自己的版本创建新项目,将新项目的对应文件复制到根目录下 + ## 使用说明 1.语音转文字功能 在功能AbilityASlice继承AsrBaseAbilitySlice,实现 showAsrResult(String info)方法 -- Gitee From e9ada6235b0506d07eff224fb1e2c5e951ca344f Mon Sep 17 00:00:00 2001 From: wjt983049539 Date: Tue, 6 Jul 2021 10:44:38 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E5=BA=93=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 2 +- entry/build.gradle | 4 ++-- settings.gradle | 2 +- speechutils/build.gradle | 2 +- speechutils/src/main/config.json | 2 +- speechutils/src/main/resources/base/element/string.json | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/build.gradle b/build.gradle index a4bbee5..d8bca9b 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.huawei.ohos.app' ohos { - compileSdkVersion 6 + compileSdkVersion 5 defaultConfig { compatibleSdkVersion 5 } diff --git a/entry/build.gradle b/entry/build.gradle index 28f0e5d..c60deac 100644 --- a/entry/build.gradle +++ b/entry/build.gradle @@ -19,9 +19,9 @@ ohos { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.har']) - implementation('com.gitee.chinasoft_ohos:speechutils:0.0.2-SNAPSHOT') +// implementation('com.gitee.chinasoft_ohos:speechutils:0.0.2-SNAPSHOT') testImplementation 'junit:junit:4.13' - ohosTestImplementation 'com.huawei.ohos.testkit:runner:1.0.0.100' + implementation project(path: ':speechutils') } decc { supportType = ['html', 'xml'] diff --git a/settings.gradle b/settings.gradle index 4652826..fe07c60 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1 @@ -include ':entry', ':speechutils' +include ':entry',':speechutils' diff --git a/speechutils/build.gradle b/speechutils/build.gradle index 8314428..4d1bb44 100644 --- a/speechutils/build.gradle +++ b/speechutils/build.gradle @@ -1,6 +1,6 @@ apply plugin: 'com.huawei.ohos.library' ohos { - compileSdkVersion 6 + compileSdkVersion 5 defaultConfig { compatibleSdkVersion 5 } diff --git a/speechutils/src/main/config.json b/speechutils/src/main/config.json index c421888..c30b87d 100644 --- a/speechutils/src/main/config.json +++ b/speechutils/src/main/config.json @@ -16,7 +16,7 @@ ], "distro": { "deliveryWithInstall": true, - "moduleName": "$string:app_name", + "moduleName": "speechutils", "moduleType": "har" } } diff --git a/speechutils/src/main/resources/base/element/string.json b/speechutils/src/main/resources/base/element/string.json index 040e54d..b171254 100644 --- a/speechutils/src/main/resources/base/element/string.json +++ b/speechutils/src/main/resources/base/element/string.json @@ -2,7 +2,7 @@ "string": [ { "name": "app_name", - "value": "speechutils-speechutils" + "value": "speechutils" } ] } -- Gitee From 235f8f753bb64fa6cb8ab3fa0c4e5a25b82fe975 Mon Sep 17 00:00:00 2001 From: wjt983049539 Date: Tue, 6 Jul 2021 10:46:37 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BE=9D=E8=B5=96=E8=BF=9C=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entry/build.gradle b/entry/build.gradle index c60deac..f5d42af 100644 --- a/entry/build.gradle +++ b/entry/build.gradle @@ -19,9 +19,9 @@ ohos { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.har']) -// implementation('com.gitee.chinasoft_ohos:speechutils:0.0.2-SNAPSHOT') + implementation('com.gitee.chinasoft_ohos:speechutils:0.0.2-SNAPSHOT') testImplementation 'junit:junit:4.13' - implementation project(path: ':speechutils') +// implementation project(path: ':speechutils') } decc { supportType = ['html', 'xml'] -- Gitee