问题描述
我刚装上的win 7的Android工作室,想要编译第一个样品code,但编译失败
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:\\用户\\ Sigmac \\应用程序数据\\本地\\ Android的\\ SDK \\构建工具\\ 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但emty
C:\\用户\\ Sigmac \\ AndroidStudioProjects \\投票\\程序\\编译\\中间体\\ pre-dexed \\调试\\
This folder eksist but is emtyC:\Users\Sigmac\AndroidStudioProjects\Voting\app\build\intermediates\pre-dexed\debug\
这eksist
C:\\Users\\Sigmac\\AndroidStudioProjects\\Voting\\app\\build\\intermediates\\exploded-aar\\com.android.support\\appcompat-v7\\21.0.2\\classes.jar
and this eksistC:\Users\Sigmac\AndroidStudioProjects\Voting\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.2\classes.jar
我有谷歌和搜索这个网站,但不能FINDE到一个解决方案
I have google and search this site but cant finde a solution to this
- 堆栈跟踪,--info或--debug不会改变结果。
--stacktrace, --info or --debug don't change the result
我从CMD白衣相同的结果直接tryed
我已经tryed,路径
I have tryed directly from cmd whit same resultand I have tryed "" the path
可以任何指向我一个解决方案吗?
Can any point me to a solution?
推荐答案
这是错误的应该被固定在24.0.1版本的SDK,这是现已上市。
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的工作室1.0摇篮错误1 - 找不到指定的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!