Android Studio Build Failed:任务执行失败':app:dexDebug' - 所有项目都停止了工作

时间:2015-08-05 07:50:35

标签: android gradle

以前所有项目都运转正常,但突然停止了工作。在Android Studio中构建任何项目时会显示此错误。

我没有对之前工作的内容进行任何更改。所以,我也不知道是什么触发了它。

Error:Execution failed for task ':app:dexDebug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
C:\Users\DELL14\AppData\Local\Android\sdk\build-tools\21.1.2\dx.bat --dex --no-optimize --output  D:\AndroidDevelopment\Sunshine\Lynx09\app\build\intermediates\dex\debug --input-list=D:\AndroidDevelopment\Sunshine\Lynx09\app\build\intermediates\tmp\dex\debug\inputList.txt
Error Code:
1
Output:
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.

这是gradle控制台中不同项目的内容。对于我尝试运行的所有项目,它几乎相同。

Executing tasks: [:app:assembleDebug]

Configuration on demand is an incubating feature.
:app:preBuild
:app:compileDebugNdk UP-TO-DATE
:app:preDebugBuild
:app:checkDebugManifest
:app:preReleaseBuild
:app:prepareComAndroidSupportAppcompatV72103Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42103Library UP-TO-DATE
:app:prepareDebugDependencies
: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 UP-TO-DATE
:app:preDexDebug
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.

 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:preDexDebug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
    C:\Users\DELL14\AppData\Local\Android\sdk\build-tools\21.1.2\dx.bat --dex --output D:\AndroidDevelopment\Sunshine\Sunshine\app\build\intermediates\pre-dexed\debug\support-annotations-21.0.3-8197c74ea8b8656ed6c95d15295a239b84e4ed49.jar C:\Users\DELL14\AppData\Local\Android\sdk\extras\android\m2repository\com\android\support\support-annotations\21.0.3\support-annotations-21.0.3.jar
Error Code:
    1
Output:
    The system cannot find the path specified.
    The system cannot find the path specified.
    The system cannot find the path specified.


    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug      option to get more log output.

    BUILD FAILED

    Total time: 32.438 secs

0 个答案:

没有答案