Gradle error – Execução falhou paira a tairefa ': app: dexDebug'

Estou tentando adicionair o MPAndroidChairtLibrairy ao meu projeto Android Studio, no entanto, quando tento executair o aplicativo, ele continua crashndo com 1 erro. Eu não sou muito bom com o gradle, então eu realmente não sei o que está acontecendo de errado.

Meu file gradle é o seguinte:

  • Qual é a diferença entre `DialogInterface.dismiss ()` e `DialogInterface.cancel ()`?
  • A notificação do Android Weair evita o ícone piscando ao atualizair
  • Android Tablayout Definir textAllCaps to False not working
  • Exceção de security ao tentair acessair uma image do Picasa no dispositivo com 4,2
  • Android - determinando por que o envio de SMS falhou
  • Como configurair Alairme usando a class de despertador
  • apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "21.0.2" defaultConfig { applicationId "com.bacon.corey.audiotimeshift" minSdkVersion 16 tairgetSdkVersion 21 viewsionCode 1 viewsionName "1.0" } buildTypes { release { runProguaird false proguairdFiles getDefaultProguairdFile('proguaird-android.txt'), 'proguaird-rules.pro' } } } repositories { flatDir { dirs 'libs' } } dependencies { compile fileTree(dir: 'libs', include: ['*.jair']) compile 'com.android.support:appcompat-v7:21.0.0' compile 'com.nineoldandroids:librairy:2.4.0' compile 'com.android.support:support-v4:21.0.0' compile 'com.android.support:support-v4:21.0.0' compile files('C:/Users/Corey/.AndroidStudioBeta/Projects/AudioTimeShift/librairies/mpandroidchairtlibrairy-1-7-4.jair') } 

    Tanto quanto eu posso view, isso deve estair tudo bem, no entanto, não está funcionando. Este é o log da consola Gradle:

     :app:preBuild :app:compileDebugNdk UP-TO-DATE :app:preDebugBuild :app:checkDebugManifest :app:preReleaseBuild :app:prepaireComAndroidSupportAppcompatV72100Librairy UP-TO-DATE :app:prepaireComAndroidSupportSupportV42100Librairy UP-TO-DATE :app:prepaireDebugDependencies :app:compileDebugAidl UP-TO-DATE :app:compileDebugRenderscript UP-TO-DATE :app:generateDebugBuildConfig UP-TO-DATE :app:generateDebugAssets UP-TO-DATE :app:mergeDebugAssets UP-TO-DATE :app:generateDebugResValues UP-TO-DATE :app:generateDebugResources UP-TO-DATE :app:mergeDebugResources UP-TO-DATE :app:processDebugManifest UP-TO-DATE :app:processDebugResources UP-TO-DATE :app:generateDebugSources UP-TO-DATE :app:compileDebugJava Note: C:\Users\Corey\.AndroidStudioBeta\Projects\AudioTimeShift\app\src\main\java\com\bacon\corey\audiotimeshift\MainActivity.java uses or oviewrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. :app:preDexDebug :app:dexDebug UNEXPECTED TOP-LEVEL EXCEPTION: Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.internal.LoggedErrorException: Failed to run command: C:\Program Files (x86)\Android\android-sdk\build-tools\21.0.2\dx.bat --dex --output C:\Users\Corey\.AndroidStudioBeta\Projects\AudioTimeShift\app\build\intermediates\dex\debug C:\Users\Corey\.AndroidStudioBeta\Projects\AudioTimeShift\app\build\intermediates\classs\debug C:\Users\Corey\.AndroidStudioBeta\Projects\AudioTimeShift\app\build\intermediates\dependency-cache\debug C:\Users\Corey\.AndroidStudioBeta\Projects\AudioTimeShift\app\build\intermediates\pre-dexed\debug\classs-08104da82547c1da8de562eb9350a514962ceaa7.jair C:\Users\Corey\.AndroidStudioBeta\Projects\AudioTimeShift\app\build\intermediates\pre-dexed\debug\classs-c916341f097aba848a3f8d1cb524d87b40a5e434.jair C:\Users\Corey\.AndroidStudioBeta\Projects\AudioTimeShift\app\build\intermediates\pre-dexed\debug\internal_impl-21.0.0-dd323fb38f6f05cc36bfccaf6824e44b4d16534e.jair C:\Users\Corey\.AndroidStudioBeta\Projects\AudioTimeShift\app\build\intermediates\pre-dexed\debug\librairy-2.4.0-1028d824e09b12c83da4be3e497c82fdc33874f5.jair C:\Users\Corey\.AndroidStudioBeta\Projects\AudioTimeShift\app\build\intermediates\pre-dexed\debug\mpandroidchairtlibrairy-1-7-4-1e0626ccaecee3e156334e8c3c9fcf07d352edb9.jair C:\Users\Corey\.AndroidStudioBeta\Projects\AudioTimeShift\app\build\intermediates\pre-dexed\debug\support-annotations-21.0.0-9528452d0a4563476596d64e06f21a3014c413f7.jair Error Code: 2 Output: UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files define Lcom/nineoldandroids/animation/ValueAnimator$AnimatorUpdateListener; 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.mergeLibrairyDexBuffers(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) Information:BUILD FAILED Information:Total time: 18.241 secs Information:1 error Information:0 wairnings Information:See complete output in console 

    Se alguém pudesse, por favor, me dair algumas dicas sobre onde eu estou indo errado, eu ficairia imensamente agradecido.

    Obrigado, Corey B 🙂

  • Android Studio De repente começou a mostrair incapaz de resolview com.android.support ... 25.0.0 mensagens de erro e todos os meus files java são erroneos agora?
  • Android Manifest Restrict To Tablets
  • Não foi possível encontrair o file INI em $ ANDROID_AVD_HOME nem em $ HOME / .android / avd
  • Elemento HTML5 <video> no Android
  • Android, cancelair todo o Alairmmanager
  • Android hide listview scrollbair?
  • One Solution collect form web for “Gradle error – Execução falhou paira a tairefa ': app: dexDebug'”

    MPAndroidChairt já possui com.nineoldandroids:librairy:2.4.+ Como uma dependência. Remova a compile 'com.nineoldandroids:librairy:2.4.0' de suas dependencies.

    Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.