Gradle fail to import My project that run flawlessly in eclipse

hi gradle team … almost all android tutorial is written on eclipse and maven and we supposed to use gradle and studio . flawlessly

http://www.paulusworld.com/technical/android-navigationdrawer-sliding-tabs#comment-2803

in mentioned link there is a zip file contain project that is subject t discuss .

it is a project to implement nav drawer alongside with scrollable tabs . when i import it with gradle and give it run , it give me this weird error :

Error:Execution failed for task ‘:DrawerNavigationTabs:dexDebug’. > com.android.ide.common.internal.LoggedErrorException: Failed to run command:

E:\multimedia\Android Studio Versions\sdk\build-tools\21.0.2\dx.bat --dex --output C:\Users\developer\AndroidStudioProjects\DrawerNavigationTabs1\DrawerNavigationTabs\build\intermediates\dex\debug C:\Users\developer\AndroidStudioProjects\DrawerNavigationTabs1\DrawerNavigationTabs\build\intermediates\classes\debug C:\Users\developer\AndroidStudioProjects\DrawerNavigationTabs1\DrawerNavigationTabs\build\intermediates\dependency-cache\debug C:\Users\developer\AndroidStudioProjects\DrawerNavigationTabs1\DrawerNavigationTabs\build\intermediates\pre-dexed\debug\android-support-v13-fd55e4111ecbd560e3abda0d3fc25d151abb2074.jar C:\Users\developer\AndroidStudioProjects\DrawerNavigationTabs1\DrawerNavigationTabs\build\intermediates\pre-dexed\debug\android-support-v4-ff3c0078b933a31f9cf26c6acd9c3028846ffb0c.jar Error Code:

2 Output:

UNEXPECTED TOP-LEVEL EXCEPTION:

com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl;

at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)

at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)

at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)

at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)

at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)

at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454)

at com.android.dx.command.dexer.Main.runMonoDex(Main.java:302)

at com.android.dx.command.dexer.Main.run(Main.java:245)

at com.android.dx.command.dexer.Main.main(Main.java:214)

at com.android.dx.command.Main.main(Main.java:106)

how should i fix this ?

The ZIP archive on linked page is not a Gradle project so I assume you imported it into Android Studio using their importer/converter. That conversion was not perfect last time when I tried. Android Studio is still in beta and this is one of the functions that can be rough.

I’d recommend you to check documentation at http://tools.android.com/tech-docs/new-build-system and check if your project was set up properly. Also contacting the library authors can help you.

yeah is not gradle … i really sometime getting tired of this conflict between the exlipse and studio and gradle thing . all tutorial created in eclipse but eclipse is so dumb compare to studio .

thank u for checking out , i can not work with eclipse , but maybe i should follow what most ppl do and do my projects in eclipse !

u recommending i use eclipse ?

u know what im saying ? studio is awesome for design ui and other stuff … really there is no way to use studio and al this tutorials runing only on eclipse ? or i should give up