android + eclipse + maven + actionbarsherlock

前端 未结 5 1502
心在旅途
心在旅途 2021-02-10 04:27

I read lots of things about actionbarsherlock, maven, android but none of the solution I\'ve seen worked for me :(

I\'m sure that I\'m pretty close to the solution but I

5条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-10 04:48

    I had a very similar issue using Maven, Eclipse, and ActionBarSherlock. The problem is that the support library gets put into the build path twice, making the dexopt confused about the multiple declarations.

    I was able to get rid of one of the places where dexopt was finding the support library by changing the pom.xml for ActionBarSherlock from

    
        com.google.android
        support-v4
    
    

    to

    
        com.google.android
        support-v4
        provided
    
    

    Make sure you clean the project after saving this change.

提交回复
热议问题