首次安装AS后两周,我仍然无法完成#34; Hello World"建立。除了创建一个新项目并尝试构建之外,我甚至都没有做任何事情。它与" preDexDebug"有关。失败和"系统无法找到指定的路径"我知道有很多类似这样的帖子,但我想我几乎都看过这些帖子,尝试了很多提议的解决方案,而且我仍然卡住了。我有截至2015年2月5日的所有最新更新:AS 1.0.2,SDK工具24.0.2,SDK平台工具Rev. 21,SDK Build-tools 21.1.2。,Java 1.8.0_31。
我是Android的新手,所以如果您有任何建议,请记住这一点。谢谢!
Information:Gradle tasks [:app:assembleDebug]
:app:preBuild
:app:compileDebugNdk UP-TO-DATE
:app:preDebugBuild
:app:checkDebugManifest
:app:preReleaseBuild
:app:prepareComAndroidSupportAppcompatV72103Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42103Library 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
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
Error:Execution failed for task ':app:preDexDebug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
C:\Users\vinnie\AppData\Local\Android\sdk3\build-tools\21.1.2\dx.bat --dex --output C:\Users\vinnie\AndroidStudioProjects\Deleteme4\app\build\intermediates\pre-dexed\debug\support-annotations-21.0.3-4e02bd73cb03b945e2cab353d322565f8322cccd.jar C:\Users\vinnie\AppData\Local\Android\sdk3\extras\android\m2repository\com\android\support\support-annotations\21.0.3\support-annotations-21.0.3.jar
Error Code:
1
Output:
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
Information:BUILD FAILED
Information:Total time: 8.371 secs
Information:1 error
Information:0 warnings
Information:See complete output in console
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:
C:\Users\vinnie\AppData\Local\Android\sdk3\build-tools\21.1.2\dx.bat --dex --output C:\Users\vinnie\AndroidStudioProjects\Deleteme4\app\build\intermediates\pre-dexed\debug\support-annotations-21.0.3-4e02bd73cb03b945e2cab353d322565f8322cccd.jar C:\Users\vinnie\AppData\Local\Android\sdk3\extras\android\m2repository\com\android\support\support-annotations\21.0.3\support-annotations-21.0.3.jar
Error Code:
1
Output:
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
* 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: 8.371 secs
答案 0 :(得分:0)
考虑到您从全新安装中使用AS,您的防病毒软件可能会阻止执行dx.bat文件。