生成依赖
一.注册账号
https://github.com/
二.下载软件:github desktop
https://desktop.github.com/
三.写项目
1.创建新的项目:省略
2.在项目中创建library库:myuitls
3.gradle设置:gradle 7.0以下需要配置
(1)project:gradle
classpath ‘com.github.dcendents:android-maven-gradle-plugin:2.1’
(2)myutils:gradle
plugins {
id 'com.android.library'
id 'com.github.dcendents.android-maven'
}
group= 'com.github.自己名称'
四.上传代码到github
1.github新建仓库
2.clone 仓库:File---->Clone repository
3.将代码放在本地仓库地址中:D:\test3
4.版本生成
五.发布
https://www.jitpack.io/