badbook.blogg.se

Add library to github android studio
Add library to github android studio









add library to github android studio

If you get errors please post the log file. In order to publish your Android library on JitPack you just need a working build file in your Git repository. Go to your adle file of your AppProject aps and add the following line to your 'dependencies':Ĭompile project(':libs:PagerSlidingTabStripLibrary')Īt least you have to sync your gradle files: Tools -> Android -> Sync Project with Gradle Files Include ':libs:PagerSlidingTabStripLibrary' Now add this library in your adle with the following command: "PagerSlidingTabStripLibrary" (just to avoid confusion) -> after the renaming you should have the path: "NewOne/libs/PagerSlidingTabStripLibrary" You can also manually add this dependency to your adle file, as shown in the following example. The adle file is updated with the support-annotations dependency. In the Choose Library Dependency dialog, select support-annotations and click Ok. Rename the folder 'library' that you just copied to e.g. Click the icon to include a Library dependency. Then create a folder in your root project directory (-> NewOne) named 'libs'Ĭopy the complete folder 'library' of the PagerSlidingTabStrip project on git into 'libs' Please try to add the library project by editing the gradle files like this:įirst delete your module PagerSlidingTabStrip I'm not sure if it's already possible to add a library project via the IDE (-> without any problems). I also use the PagerSlidingTabStrip Project in my app and everything works fine.











Add library to github android studio