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

后端 未结 3 942
情话喂你
情话喂你 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:32

    From your description above I guess that your project structure differs from the maven default. See Introduction to the POM. But I think the android android:generate-sources is more interesting if you have changed the assets directory etc.

    Example:

    ${basedir}/src 
    ${basedir}/target/classes
    

提交回复
热议问题