更新於 2022/04/24閱讀時間約 1 分鐘

Intellj-Create Dependency and import and use

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

準備Prepare:

1.GitHub
2.https://jitpack.io/

Step1: Create

  • Create Dependency project .
一般的java專案都可以
Create Project
Create Project
  • Create Fun or Class or You need
Create Class

Step2: Push to Git

Share Project to GitHub
Add Account
Commit
Push Done

Step3: Dependency Project Releases

Releases
Add new tag.
Add new Tag
Push Releases
Push Relase And remember your Url.
URL

Step4: Go to JitPack.io

JitPack
LookUpGet itDone

Step5: Add the JitPack repository to your build file

Java Project

Android Project
build.gradle(Project)
build.gradle(App)
dependencies {
implementation 'com.github.encorex32268:mylibraray:1.0'
}

Step6: Use it

Result

分享至
成為作者繼續創作的動力吧!
© 2024 vocus All rights reserved.