Android Studio运行APP报错:系统找不到指定的路径?
Executingtasks:[:app:assembleDebug]Configurationondemandisanincubatingfeature.:app:pr...
Executing tasks: [:app:assembleDebug]
Configuration on demand is an incubating feature.
:app:preBuild
:app:compileDebugNdk UP-TO-DATE
:app:preDebugBuild
:app:checkDebugManifest
: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 UP-TO-DATE
:app:dexDebug
系统找不到指定的路径。
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:dexDebug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
D:\Android\SDK\build-tools\21.1.1\dx.bat --dex --no-optimize --output E:\HY\AndroidStudioProjects\MyApplication2\app\build\intermediates\dex\debug --input-list=E:\HY\AndroidStudioProjects\MyApplication2\app\build\intermediates\tmp\dex\debug\inputList.txt
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: 3.219 secs 展开
Configuration on demand is an incubating feature.
:app:preBuild
:app:compileDebugNdk UP-TO-DATE
:app:preDebugBuild
:app:checkDebugManifest
: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 UP-TO-DATE
:app:dexDebug
系统找不到指定的路径。
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:dexDebug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
D:\Android\SDK\build-tools\21.1.1\dx.bat --dex --no-optimize --output E:\HY\AndroidStudioProjects\MyApplication2\app\build\intermediates\dex\debug --input-list=E:\HY\AndroidStudioProjects\MyApplication2\app\build\intermediates\tmp\dex\debug\inputList.txt
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: 3.219 secs 展开
8个回答
2014-12-27
展开全部
这貌似是find_java.bat里面的一个bug,你只要打开sdk manager更新一下最新的tools目录就好
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
开始用这个了?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
想问下楼主这个问题解决了吗?怎么解决的?我也遇见这个问题了。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询