Duplicate classes R & BuildConfig after “Reimport All Maven Projects”

后端 未结 3 975
情话喂你
情话喂你 2021-01-18 07:11

We are building our Android projects with Maven and IntelliJ IDEA. Sometimes we must execute \"Reimport All Maven Projects\", e.g. to update dependencies. The problem with t

3条回答
  •  既然无缘
    2021-01-18 07:41

    According to the reply of Sven Strohschein at http://youtrack.jetbrains.com/issue/IDEA-94901 you can try to:

    1. Delete the "gen", "target" and "out" folders
    2. Revert the changes within the "ipr" and "iml" files (or just delete them all, maybe even .idea folder)
    3. Start IntelliJ 12
    4. Open the pom file
    5. Right click -> "Maven" -> "Reimport"
    6. "Build" -> "Rebuild project"

    Works fo me.

提交回复
热议问题