I'm trying to add gdx-tools.jar to a libGDX project in IntelliJ. The result:
Module "android" must not contain source root ".../android/src". The root already belongs to module "android".
This is what I've tried:
project structure > libraries > new project library > java > select "gdx-tools.jar" >select module "desktop"
project structure > modules > select "desktop" > new > jars or directories > select "gdx-tools.jar" >
Ideas?
I had run into a similar issue as well:
As I couldn't do anything on IDEA's configuration UI, I opened up the IDEA project file (my_project.iml) in vi, hoping to find out what's wrong:
So eventually I solved my case by removing the duplicate entry manually.
As the IDEA project files were generated automatically from Gradle files, I have no idea what caused the duplicate entries to be created, but for those facing similar issues, a quick glance at the .iml file may help.