俗话说的好会者不难难者不会 之前看这个一个好高大上的东西 做过一遍后好简单啊
1.Project的gradle中添加
repositories {
...
maven { url "https://jitpack.io" }
}
dependencies {
...
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
}
}
2.app的gradle中添加
apply plugin: 'com.github.dcendents.android-maven'
//自己git账号
group = '525642022'
3.上传git并发布自己的realease版
image.png
-
登录自己jitpack 并找到项目
image.png
5.生成implementation引用
image.png
6.到自己项目中引用一下 确认可以正常运行
image.png
7.结束 是不是很简单....
第一个尝试的demo:https://github.com/525642022/LayoutManagerTest
可以试一下
网友评论