2014-10-14 6 views
0

내 프로젝트에 ActionBarSherlockSwipeListView을 사용해야합니다. Attribute xxx has already been defined :그라디언트를 사용하여 ActionBarSherlock 및 swipelistview

compile 'com.actionbarsherlock:actionbarsherlock:[email protected]' 
compile('com.fortysevendeg.swipelistview:swipelistview:[email protected]') { 
    transitive = true 
} 

것은 내가 오류 다음 얻을 : 나는 파일을 build.gradle하는 종속성을 다음과 같은 추가되었습니다. 나는 SwipeListViewhere을 볼 수 있기 때문에 ActionBarSherlock과 v7이 호환되지 않는 종속성으로 appcompat-v7을 사용하기 때문에 그 문제가 있다고 생각합니다.

내 프로젝트에서 gradle을 사용하여 ActionBarSherlockSwipeListView을 모두 사용하는 적절한 방법은 무엇입니까?

답변

0

빌드하는 동안 appcompat-v7 lib를 제외했습니다. 지금까지 작동하는 것 같습니다. 종속성이 필요 여부되어 있는지 https://github.com/47deg/android-swipelistview/issues/191 :하지만 그것이 내가 문제를 열었습니다

compile ('com.fortysevendeg.swipelistview:swipelistview:[email protected]') { 
     transitive = true 
     exclude module: 'support-v4' 
     exclude module: 'appcompat-v7' 
     compile 'com.android.support:support-v4:13.0.0' 
    } 

일부 장치에 충돌 할 수 있습니다 두려워.

관련 문제