Gradle build finished with 1 error(s) in 27 sec

Configuration on demand is an incubating feature.
:app:preBuild
:app:preDebugBuild
:app:checkDebugManifest
:app:preReleaseBuild
:app:prepareComAndroidSupportAppcompatV72102Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42102Library 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
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources
:app:generateDebugSources
:app:compileDebugJava
:app:compileDebugNdk
:app:compileDebugSources

BUILD SUCCESSFUL

Total time: 37.752 secs
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:prepareComAndroidSupportAppcompatV72102Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42102Library 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
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources
:app:generateDebugSources
:app:compileDebugJava UP-TO-DATE
:app:preDexDebug
系统找不到指定的路径。
系统找不到指定的路径。

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:
    I:\Android\AndroidStudio\sdk\android-sdk\build-tools\21.1.1\dx.bat --dex --output I:\AndroidStudioProjects\demo\app\build\intermediates\pre-dexed\debug\support-annotations-21.0.2-d4e8abdd04fc0223d0002d2cc6ae39c985012f02.jar I:\Android\AndroidStudio\sdk\android-sdk\extras\android\m2repository\com\android\support\support-annotations\21.0.2\support-annotations-21.0.2.jar
    Error Code:
    1
    Output:
    系统找不到指定的路径。
  • 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: 26.542 secs
2015-02-06 19:53 添加评论 分享
已邀请:

最佳回复

1

SadieYu - 爱生活,爱狗狗

赞同来自: studio

  1. gradle clean
  2. rebuild your project then gradle aR
  3. "The system cannot find the path specified" : check your environment , to make sure that you have set the environment like JAVA_HOME , TOOLS, BUILD_TOOLS, PLATFORM_TOOLS .
  4. try to find an answer in Google (A very important thing)

5.Sorry to answer your question by English , somethng's wrong with my input methond in mint os
  1. good luck and enjoy IT.
1

monroe - 我是傻逼

赞同来自: studio

除了楼上的回答之外,可以尝试修改 buildToolsVersion 的版本至最新的版本。

要回复问题请先登录注册

退出全屏模式 全屏模式 回复