我刚刚在win 7上安装了Android studio,并希望编译第一个示例代码,但编译失败
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
这个文件夹是eksist但是很好 C:\用户\ Sigmac \ AndroidStudioProjects \投票\应用\构建\中间体\预dexed \调试\
这个eksist C:\用户\ Sigmac \ AndroidStudioProjects \投票\应用\构建\中间体\分解-AAR \ com.android.support \程序兼容性-V7 \ 21.0.2 \ classes.jar
我有谷歌搜索这个网站,但无法找到解决方案
- stacktrace, - info或--debug不会改变结果
我直接从cmd whit尝试了相同的结果 我试过了#34;"路径
我能指出一个解决方案吗?
答案 0 :(得分:1)
这是错误https://code.google.com/p/android/issues/detail?id=82099,应该在SDK的24.0.1版本中修复,该版本现已上市。
错误是找到Java分发的内部脚本在32位Windows系统上无法正常工作。