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

前端 未结 8 1805
忘掉有多难
忘掉有多难 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: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

提交回复
热议问题