Android studio 1.0 Gradle 错误 1 ​​- 未找到指定的路径 [英] Android studio 1.0 Gradle error 1 - The specified path was not found

查看:38
本文介绍了Android studio 1.0 Gradle 错误 1 ​​- 未找到指定的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在 win 7 上安装了 Android studio,想编译第一个示例代码,但是编译失败

I have just installed Android studio on a win 7 and wanted to compile the first sample code but the compiling fails

Executing tasks: [:app:assembleDebug]

Configuration on demand is an incubating feature.

:app:preBuil
: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 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

Den angivne sti blev ikke fundet. (The specified path was not found.)

 FAILED

Den angivne sti blev ikke fundet. (The specified path was not found.)

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\Sigmac\AppData\Local\Android\sdk\build-tools\21.1.1\dx.bat --dex --output 
C:\Users\Sigmac\AndroidStudioProjects\Voting\app\build\intermediates\pre-dexed\debug
\classes-b6f615fe9376219a5b11445078329964f51dafd9.jar C:\Users\Sigmac
\AndroidStudioProjects\Voting\app\build\intermediates\exploded-aar\com.android.support
\appcompat-v7\21.0.2\classes.jar

Error Code:
1

Output:
Den angivne sti blev ikke fundet. (The specified path was not found.)

* 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: 30.911 secs

Den angivne sti blev ikke fundet. (The specified path was not found.)

我已经测试过这个eksist:C:\Users\Sigmac\AppData\Local\Android\sdk\build-tools\21.1.1\dx.bat

I have tested that this eksist: C:\Users\Sigmac\AppData\Local\Android\sdk\build-tools\21.1.1\dx.bat

这个文件夹eksist但是是空的C:\Users\Sigmac\AndroidStudioProjects\Voting\app\build\intermediates\pre-dexed\debug\

This folder eksist but is emty C:\Users\Sigmac\AndroidStudioProjects\Voting\app\build\intermediates\pre-dexed\debug\

还有这个eksistC:\Users\Sigmac\AndroidStudioProjects\Voting\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.2\classes.jar

and this eksist C:\Users\Sigmac\AndroidStudioProjects\Voting\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.2\classes.jar

我用谷歌搜索了这个网站,但找不到解决方案

I have google and search this site but cant finde a solution to this

--stacktrace、--info 或--debug 不改变结果

--stacktrace, --info or --debug don't change the result

我直接从 cmd 尝试过,结果相同我已经尝试了"路径

I have tryed directly from cmd whit same result and I have tryed "" the path

有人能指出我的解决方案吗?

Can any point me to a solution?

推荐答案

This is bug https://code.google.com/p/android/issues/detail?id=82099 这应该在 SDK 的 24.0.1 版本中得到修复,现在可用.

This is bug https://code.google.com/p/android/issues/detail?id=82099 which should be fixed in the 24.0.1 release of the SDK, which is available now.

该错误是发现 Java 发行版的内部脚本在 32 位 Windows 系统上无法正常工作.

The bug is that an internal script that finds the distribution of Java isn't working correctly on 32-bit Windows systems.

这篇关于Android studio 1.0 Gradle 错误 1 ​​- 未找到指定的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆