Android Studio: Error:Execution failed for task ':app:dexDebug' when build project -


i'm using android studio first time , got following error after importing project (previously eclipse project had issues too.)

here information given:

   error:execution failed task ':xink:dexdebug'. 

com.android.ide.common.internal.loggederrorexception: failed run command: c:\users\user\appdata\local\android\sdk\build-tools\21.1.2\dx.bat --dex --no-optimize --output e:\xink app\xink\xink\build\intermediates\dex\debug --input-list=e:\xink app\xink\xink\build\intermediates\tmp\dex\debug\inputlist.txt error code: 2 output: unexpected top-level exception: com.android.dex.dexindexoverflowexception: method id not in [0, 0xffff]: 65536 @ com.android.dx.merge.dexmerger$6.updateindex(dexmerger.java:502) @ com.android.dx.merge.dexmerger$idmerger.mergesorted(dexmerger.java:277) @ com.android.dx.merge.dexmerger.mergemethodids(dexmerger.java:491) @ com.android.dx.merge.dexmerger.mergedexes(dexmerger.java:168) @ com.android.dx.merge.dexmerger.merge(dexmerger.java:189) @ com.android.dx.command.dexer.main.mergelibrarydexbuffers(main.java:454) @ com.android.dx.command.dexer.main.runmonodex(main.java:303) @ com.android.dx.command.dexer.main.run(main.java:246) @ com.android.dx.command.dexer.main.main(main.java:215) @ com.android.dx.command.main.main(main.java:106)

the app build.gradle this:

    apply plugin: 'com.android.application'      android {         compilesdkversion 19         buildtoolsversion "21.1.2"          defaultconfig {             applicationid "com.vog.xink"             minsdkversion 14             targetsdkversion 21         }          buildtypes {             release {                 minifyenabled false                 proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-project.txt'             }         }     }      dependencies {     compile project(':library')     compile project(':facebook')     compile project(':swipecard')      compile files('libs/android-query-full.0.26.7.jar')     compile files('libs/httpmime-4.1.1.jar')       compile files('libs/google-api-client-1.10.3-beta.jar')     compile files('libs/google-http-client-1.10.3-beta.jar')     compile files('libs/google-api-client-android2-1.10.3-beta.jar')     compile files('libs/google-http-client-android2-1.10.3-beta.jar')      compile files('libs/google-oauth-client-1.10.1-betar.jar')     compile files('libs/jackson-core-asl-1.9.4.jar')     compile files('libs/jsr305-1.3.9.jar')       compile 'com.loopj.android:android-async-http:1.4.6'     compile 'com.etsy.android.grid:library:1.0.5'     compile 'com.android.support:support-v4:21.0.3'     compile 'com.google.android.gms:play-services:6.5.87'     compile 'com.jpardogo.materialtabstrip:library:1.0.6'     compile 'com.crittercism:crittercism-android-agent:+'     compile 'org.jsoup:jsoup:1.7.2'     compile 'com.squareup.picasso:picasso:2.5.2'     compile 'com.google.code.gson:gson:2.3'     compile 'com.androidmapsextensions:android-maps-extensions:2.2.0'     compile 'com.google.guava:guava:18.0'  } 

you including same library more once. try include 1 google-api-client , 1 google-http-client.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -