Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,809,424 Members 36,468 Now Online
XDA Developers Android and Mobile Development Forum

[SOLVED][Q] Help adding Gradle based library to my non-Gradle non-Eclipse project

Tip us?
 
Tory Gaurnier
Old
(Last edited by Tory Gaurnier; 17th June 2014 at 09:02 PM.) Reason: Solved problem
#1  
Tory Gaurnier's Avatar
Member - OP
Thanks Meter 24
Posts: 30
Join Date: Mar 2014
Default [SOLVED][Q] Help adding Gradle based library to my non-Gradle non-Eclipse project

I'm trying to use HoloColorPicker by Lars Werkman, now I'm not using Eclipse or the Android Studio, I'm doing everything via command line and advanced text editors (that's just how I like it). Now the problem I'm running into is HoloColorPicker uses Gradle, so it doesn't have a build.xml file, giving me this error when I try to build:

Invalid file: /HOMEFOLDER/DevTools/AndroidLibs/HoloColorPicker/build.xml


I used the `android update project` command to add the library to my project, so how do I either convert the Gradle project to a standard android proect, or get it to build the library with gradle instead of build.xml???

Any help is greately apprecieated, thanks.
 
Tory Gaurnier
Old
#2  
Tory Gaurnier's Avatar
Member - OP
Thanks Meter 24
Posts: 30
Join Date: Mar 2014
Well, I think I figured it out, all I had to do was open a terminal in the folder of library project and run this:
android update lib-project --path . --target 1

Afterwards it created the appropriate files that were needed and it now compiles, of course I won't know for 100% certainty until I actually use some things from the library and get it to run.
 
Tory Gaurnier
Old
#3  
Tory Gaurnier's Avatar
Member - OP
Thanks Meter 24
Posts: 30
Join Date: Mar 2014
Well, I've tested it and this did fix my issue, I was able to successfully import the library.
Tags
dev, gradle, library
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes