diff --git a/README.md b/README.md index 2221ba8018b97ec63f4f8d48c94032e56f19878f..bd88dd7423ac3aac3e841c71dff967b2e9faebae 100644 --- a/README.md +++ b/README.md @@ -15,11 +15,24 @@ ![](image/gif.gif) ## 安装教程 -1.在entry模块的build.gradle文件中 + +1.在项目根目录下的build.gradle文件中添加。 + +``` +allprojects { + repositories { + maven { + url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' + } + } +} +``` + +2.在entry模块的build.gradle文件中 ``` dependencies { - implementation project(':library') + implementation('com.gitee.chinasoft_ohos:GalleryLayoutManager:0.0.1-SNAPSHOT') ...... } ``` diff --git a/entry/build.gradle b/entry/build.gradle index 114bafd56eeda3e7d6410ab4ccd188c81ec27618..43b80a54aa4096b29a12ed59af34332525a6fa72 100644 --- a/entry/build.gradle +++ b/entry/build.gradle @@ -14,7 +14,7 @@ ohos { } } } - + } dependencies { @@ -25,7 +25,10 @@ dependencies { implementation 'com.gitee.chinasoft_ohos:blurkit-ohos:0.0.2-SNAPSHOT' //本地依赖 - implementation project(':library') +// implementation project(':library') + + //远程依赖 + implementation('com.gitee.chinasoft_ohos:GalleryLayoutManager:0.0.1-SNAPSHOT') } decc { supportType = ['html','xml']