vurhopper.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. 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 In order to publish your Android library on JitPack you just need a working build file in your Git repository. Once Android Studio is installed, we’ll need to install the NDK (Native Development Kit). In order to do Android development, we’ll need to set up our Android environment. Include ':libs:PagerSlidingTabStripLibrary' Following on from the last post on getting a Rust library building on iOS, we’re now going to deploy the same library on Android. 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" Rename the folder 'library' that you just copied to e.g. 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'

add library to github android studio

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