Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP Tory Gaurnier

7th June 2014, 10:06 PM   |  #1  
Tory Gaurnier's Avatar
OP Member
Thanks Meter: 26
 
34 posts
Join Date:Joined: Mar 2014
More
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.
Last edited by Tory Gaurnier; 17th June 2014 at 10:02 PM. Reason: Solved problem
9th June 2014, 06:42 AM   |  #2  
Tory Gaurnier's Avatar
OP Member
Thanks Meter: 26
 
34 posts
Join Date:Joined: Mar 2014
More
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.
17th June 2014, 10:03 PM   |  #3  
Tory Gaurnier's Avatar
OP Member
Thanks Meter: 26
 
34 posts
Join Date:Joined: Mar 2014
More
Well, I've tested it and this did fix my issue, I was able to successfully import the library.
Post Reply Subscribe to Thread

Tags
dev, gradle, library
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes