When generating a new libgdx project

Anything libgdx related goes here!

When generating a new libgdx project

Postby kangnguyen » Tue Jan 07, 2020 9:15 am

Hi all,
I have downloaded the last version of gdx-setup, filled all the fields with good values (and checked the path of my SDK) but when I generate the project, I always have the same error: "Task 'clean' not found in root project" (see my screenshot bellow)
When I try to execute the task clean from command line in the game folder, it works.
Do you have any idea please?
I know this task is defined in the 'base' plugin, but why this plugin is not called in the build.gradle generated file, and why it's working with command line?!
Thank you very much in advance for your help!
Posts: 1
Joined: Tue Jan 07, 2020 9:13 am

Re: When generating a new libgdx project

Postby shatterblast » Tue Jan 07, 2020 2:33 pm

I don't see your screenshots.

You should use something like either....
Code: Select all
./gradlew clean

... or in Windows...
Code: Select all
gradlew.bat clean

... in your project's root folder.

It won't clear all results, but it will cover most. For instance, if you re-name a build file, it will likely stay afterwards, unless you modify the relative build.gradle file.
Posts: 653
Joined: Sun Jul 06, 2014 1:14 pm

Return to Libgdx

Who is online

Users browsing this forum: Majestic-12 [Bot] and 1 guest