Editing external libraries in Android Studio

前端 未结 3 1543
粉色の甜心
粉色の甜心 2020-12-08 11:33

I am using an image carousel library that I snagged off of github, but there are a few things I would like to change in the code. I have imported it using the compile \'com.

3条回答
  •  春和景丽
    2020-12-08 12:22

    I solved this way. Fork library project. Then clone it (In Android Studio, File -> New -> Project from Version Control -> put the link of your repository that you forked and open it). Edit it and commit it to your master branch. Then push it to your master branch. And finally find snapshot version of that library. For example if you use JitPack. Go to jitpack.io website and search for your repository (forked version with your username). And there go to commits section and get latest version that you committed. And use that library dependency in your project instead of original repo.

提交回复
热议问题