I want to use this library in my Android Studio project https://github.com/SimonVT/android-numberpicker. I can't for the life of me figure out how to add it to my project. Can someone just outline how this would work? I've only ever added libraries that were contained in jar files.
Asked
Active
Viewed 1,045 times
1
-
Did you figure this out. The answer below doesn't work as the file is contained in a apklib which isn't supported when i try and add it – Modika Aug 20 '15 at 13:45
-
1I believe I just ended up adding the source as a library rather than using gradle. – Tulsi Leathers Aug 20 '15 at 17:23
-
Yeah i figured something out after i posted. I imported the library as its own module in Android Studio and then imported the aar files into the solution. Got there in the end. – Modika Aug 20 '15 at 17:31
-
@Modika Hey, I really getting stuck. I tried to add this library more to android studio but it still give me apklib. Could you please give me the steps to integrate it to my application asap. Thanks! – Ibrahim AbdelGawad Nov 28 '15 at 13:16
-
@heema, honestly i cant really remember as i dont do android stuff in the main. I remember something about creating some form of module from the source in android studio and then importing it but really cant remember the steps fully – Modika Nov 28 '15 at 18:27
-
@Modika Thanks so much for your reply. It's still not working but I will do some tries hope it work. – Ibrahim AbdelGawad Nov 28 '15 at 20:23
-
@heema i think i did this. http://stackoverflow.com/a/16634680/228884 – Modika Nov 30 '15 at 08:21
-
@Modika Thanks for your help. I tried but it doesn't work for sorry! – Ibrahim AbdelGawad Dec 07 '15 at 14:37
3 Answers
1
In build.gradle, use:
dependencies {
compile group: 'net.simonvt', name: 'android-numberpicker-parent', version: '1.0.0'
}

Luke
- 2,187
- 1
- 18
- 29
0
If you are using new gradle build system (and you really should), just add
compile 'net.simonvt:android-numberpicker:1.0.0'
to your build.gradle's dependencies section.

Deinlandel
- 1,023
- 8
- 25
0
I found a forked version of this library which can be imported from source as a module in Android Studio. It is available here: https://github.com/heavyplayer/android-numberpicker

mtbomb
- 1,107
- 1
- 13
- 16