我的Android Studio項目出現問題,它編譯正常,我不知道我做了什麼打破它。Android:執行失敗的任務「:app:dexDebug」
Error:Execution failed for task ':app:dexDebug'. com.android.ide.common.internal.LoggedErrorException: Failed to run command: C:\Users\Moritz\AppData\Local\Android\sdk\build-tools\21.1.1\dx.bat --dex --no-optimize --output C:\Users\Moritz\AndroidStudioProjects\Expenses1\app\build\intermediates\dex\debug --input-list=C:\Users\Moritz\AndroidStudioProjects\Expenses1\app\build\intermediates\tmp\dex\debug\inputList.txt Error Code: 1
的build.gradle(模塊:APP)
compile 'com.android.support:appcompat-v7:22.0.0'
compile 'com.android.support:support-v4:22.0.0'
compile ('com.larswerkman:HoloColorPicker:1.4')
compile ('com.melnykov:floatingactionbutton:1.1.0')
compile 'net.sf.opencsv:opencsv:2.3'
compile 'com.itextpdf:itextpdf:5.0.6'
compile 'joda-time:joda-time:2.7'
compile 'com.github.m1s73r:LolliPin:v1.3'
compile 'com.github.PhilJay:MPAndroidChart:v2.0.9'
compile 'net.objecthunter:exp4j:0.4.5'
compile 'fr.avianey.com.viewpagerindicator:library:[email protected]'
非常感謝!儘管你的答案沒有建立起來,但它給我指出了問題的真正原因。我記得更新我的Java版本,並且你的命令建議沒有設置Java路徑。所以我設置了我的「JAVA_PATH」,並將java/bin文件夾添加到路徑變量中,現在它可以完美運行。你是我的英雄! :) – moritzg