本地新建Android Studio项目
新建Module,选择Android library(我的名字是dialog)
删除项目下的app Module,只留Android library
编写内容 项目中 无需 无需 无需 做任何特殊处理 例如这种
1
2
3classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
apply plugin: 'com.github.dcendents.android-maven'
group='com.github.你的guihub的账户名字'使用git上传到github
选择发布
发布内容
集成进项目
我的测试项目
https://github.com/Lrxc/lrxcdialog
添加依赖 参考步骤9
1 | maven { url 'https://jitpack.io' } |