2022-04-22|閱讀時間 ‧ 約 2 分鐘

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

分享至
成為作者繼續創作的動力吧!
從 Google News 追蹤更多 vocus 的最新精選內容從 Google News 追蹤更多 vocus 的最新精選內容

發表回應

成為會員 後即可發表留言
© 2024 vocus All rights reserved.