convert ant/eclipse project to gradle?

698 views
Skip to first unread message

Chris Dawson

unread,
Feb 27, 2013, 11:13:14 AM2/27/13
to gradle-android-p...@googlegroups.com
I'm playing with gradle and like what I see. I've been trying to move an eclipse (which I can also run via ant) into gradle. I get some errors and am stuck being a newbie to gradle.

Here is the build.gradle file I am currently using, stepping through rewriting this from samples I see on the web.


Here is the output when I run gradle --debug


I started my project by moving these files:
  • Moved src/com/... to src/main/com/... 
  • Moved my AndroidManifest.xml (which was in the root) into src/main
Is there a guide somewhere which can help me get through these issues and know the correct way to do this? 

Chris 

Chris Dawson

unread,
Feb 27, 2013, 2:50:13 PM2/27/13
to gradle-android-p...@googlegroups.com
I figured it out, needed to downgrade to gradle 1.2. For anyone using OSX and brew, this documents how I did it:

Chris Dawson

unread,
Feb 27, 2013, 3:15:22 PM2/27/13
to gradle-android-p...@googlegroups.com
Aaaaand, I guess these instructions are only necessary if you are using the android gradle plugin 0.2. Setting this to 0.3 inside build.gradle (classpath 'com.android.tools.build:gradle:0.3') then works. I had to upgrade my android build tools but then I was able to use gradle 1.4.
Reply all
Reply to author
Forward
0 new messages