Skip to content

Instantly share code, notes, and snippets.

skgmn /
Last active June 22, 2023 23:31
Step by step to use Android library which has been published to GitHub Packages.
  1. Go to [Your Profile] => [Developer settings] => [Personal access token] => [Generate new token] on
  2. Check read:packages
  3. Click Generate token
  4. Copy the generated token
  5. Add below lines to your ~/.gradle/ (the path may be different on Windows)
GITHUB_ID={your github id}
GITHUB_PACKAGES_TOKEN={the generated token}
  1. Merge below lines to your <project root>/settings.gradle (If you are using the recent version of Android Gradle Plugin)