Android build works in Eclipse but not with Ant (“already added”)

后端 未结 4 1832
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-05 12:47

My Android project uses several git submodules marked as Android Libraries. These submodules all have different uses of the ORMlite Android jars and thus have the ORMlite ja

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-05 13:11

    Had the same problem but with android-support-v4.jar — it was used in referenced project library and app project. Here's the solution

    Workaround: 1. Remove file android-support-v4.jar from App/libs 2. In Eclipse add jar referenced to ReferencedProjectLibrary/libs/android-support-v4.jar

    It works in Eclipse and Ant too ;)

提交回复
热议问题