Intellj-Create Dependency and import and use

更新於 發佈於 閱讀時間約 2 分鐘

自己建立自己的依賴然後去使用

準備Prepare:

1.GitHub

2.https://jitpack.io/

Step1: Create

  • Create Dependency project .

一般的java專案都可以

raw-image
  • Create Fun or Class or You need
raw-image

Step2: Push to Git

raw-image
raw-image
raw-image
raw-image

Step3: Dependency Project Releases

raw-image

Add new tag.

raw-image
raw-image

Push Relase And remember your Url.

raw-image

Step4: Go to JitPack.io



raw-image

LookUp>Get it>Done

Step5: Add the JitPack repository to your build file

Java Project

raw-image

Android Project

build.gradle(Project)

raw-image
raw-image

build.gradle(App)

dependencies {
implementation 'com.github.encorex32268:mylibraray:1.0'
}


Step6: Use it

raw-image
raw-image



















留言
avatar-img
留言分享你的想法!
avatar-img
LiHan的沙龍
1會員
2內容數