how to import your own github forked library into android studio

前端 未结 5 1933
不思量自难忘°
不思量自难忘° 2021-02-01 19:12

I found a nice open library on GitHub, I imported it into my Android Studio project using Gradle dependencies, but then I realized I need to make little modifications on it.

5条回答
  •  猫巷女王i
    2021-02-01 20:03

    You need to add your own git respository as remote. You can't however do this within Android Studio, according to this thread. Use the command line instead:

    git remote add remoteName remoteUrl
    git fetch remoteName
    

    Then you can go to Android Studio, VCS > Git > Pull and select your added remote repository.

提交回复
热议问题