I like to use SVN while working on projects so I can share them with friends and code on them on any computer I’m at. Recently decided to try out the new libgdx with gradle. After I create the project and import into eclipse I push all the project files to svn, then on my other computer I go and check all the project files out. Here is where I am having trouble, when I download the project to another machine I get build errors and gradle build errors like the following:
CODE: SELECT ALL FAILURE: Build failed with an exception.
-
Where: Build file ‘C:\Users\Adam\workspace\luna\java\FinalDragonFantasyWarrior-android\build.gradle’ line: 2
-
What went wrong: A problem occurred evaluating root project ‘FinalDragonFantasyWarrior-android’. > Could not find method android() for arguments [build_1hu7p43mmvi4ra9sksvfcp2u9i$_run_closure1@464d11cd] on root project ‘FinalDragonFantasyWarrior-android’.
-
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
CODE: SELECT ALL FAILURE: Build failed with an exception.
-
Where: Build file ‘C:\Users\Adam\workspace\luna\java\FinalDragonFantasyWarrior-desktop\build.gradle’ line: 30
-
What went wrong: A problem occurred evaluating root project ‘FinalDragonFantasyWarrior-desktop’. > Could not find method eclipse() for arguments [build_461ah922ec98vunsgvvhlhcs8k$_run_closure3@48eded98] on root project ‘FinalDragonFantasyWarrior-desktop’.
-
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
CODE: SELECT ALL FAILURE: Build failed with an exception.
-
Where: Build file ‘C:\Users\Adam\workspace\luna\java\FinalDragonFantasyWarrior-core\build.gradle’ line: 9
-
What went wrong: A problem occurred evaluating root project ‘FinalDragonFantasyWarrior-core’. > Could not find property ‘eclipse’ on root project ‘FinalDragonFantasyWarrior-core’.
-
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
I have also experienced this if I move the project from one folder to another. I am at a loss on what is going on as I am not too familiar with gradle and am just trying to learn libgdx. Any help or direction would be appreciated, I’ve searched for a few days now and haven’t found anything. Thanks in advance for any assistance.