(when adding jar) - Module “android” must not contain source root

前端 未结 8 1803
忘掉有多难
忘掉有多难 2020-12-24 13:18

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

相关标签:
8条回答
  • 2020-12-24 13:41

    I solve in with
    Deletion both gen and gen [generated] from Source Folder.

    0 讨论(0)
  • 2020-12-24 13:42

    I fixed the issue by deleting .iml files of modules causing the issue.

    0 讨论(0)
  • 2020-12-24 13:54

    By deleting it in the module, and then importing it again. solve the problem.

    I think it's a bug of IDEA.Eclipse is fine.

    Hopefully idea developers will see that

    0 讨论(0)
  • 2020-12-24 13:56

    I had same problem. Solved it by completely deleting project, then clone it back from GIT.

    0 讨论(0)
  • 2020-12-24 13:58

    I solved the problem by simply renaming the project. Right click on the project, then click refactor.

    0 讨论(0)
  • 2020-12-24 13:59

    Just by going to the Artifacts Settings, Modules, Sources tab, and you will see 2 folders called "gen" and "gen[generated]", delete "gen" by clicking on the X icon to the right of it.

    look: enter image description here

    0 讨论(0)
提交回复
热议问题