【问题标题】::app:dexDebug Android studio 1.0 Gradle error 1 - The specified path was not found:app:dexDebug Android studio 1.0 Gradle错误1 - 找不到指定路径
【发布时间】:2014-12-10 14:02:47
【问题描述】:

错误:

任务 ':app:dexDebug' 执行失败。

com.android.ide.common.internal.LoggedErrorException:运行失败 命令:

C:\Users\JosephSlawsky\Android\sdk\android-sdk\build-tools\21.1.1\dx.bat --dex --no-optimize --multi-dex --main-dex-list C:\Users\JosephSlawsky\AndroidStudioProjects\PETS\app\build\intermediates\multi-dex\debug\maindexlist.txt --输出 C:\Users\JosephSlawsky\AndroidStudioProjects\PETS\app\build\intermediates\dex\debug --input-list=C:\Users\JosephSlawsky\AndroidStudioProjects\PETS\app\build\intermediates\tmp\dex\debug\inputList.txt

错误代码:

1

输出:

The system cannot find the path specified

运行 Windows 7 32 位

我检查了,所有文件和目录都存在,无法在dos窗口中复制命令行,因为处理时间太长。

整个问题是否与它是 440 个字符的命令行有关?

还对 multidex minify 等进行了 Gradle 更改。

这是一个 Google Glass 应用程序(不是很大),使用 Android Studio 的最后一个测试版编译并运行良好。

【问题讨论】:

标签: android google-glass android-gradle-plugin


【解决方案1】:

更新后我遇到了类似的问题。我发现以下内容很有帮助:

原因:

tools/lib/find_java.bat第27行有问题:

find /i "x86" > NUL && set arch_ext=32 || set arch_ext=64

您必须删除“arch_ext=32”之后的空格。正确的代码是:

find /i "x86" > NUL && set arch_ext=32|| set arch_ext=64

参考:https://code.google.com/p/android/issues/detail?id=82099

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-05-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-06-13
    相关资源
    最近更新 更多