Android 未知命令“crunch”
我刚刚在 Mac OS X 中安装了 Eclipse 和 Android SDK。
我将项目导入到 Eclipse,但在运行项目时出现未知命令“crunch”错误。
我应该如何解决这个问题。
请帮我
I just installed Eclipse and Android SDK in Mac OS X.
I imported the project to Eclipse and i get the Unknown command 'crunch' error while running the project.
How should I solve this issue.
Please help me
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
我刚刚更新
“Android SDK Platform-Tool”至8 Rev和“Android Asset Packaging Tool”
从 android sdk 管理器,
然后它就可以工作了。
尝试一下!
I just update
"Android SDK Platform-Tool" to 8 Rev and "Android Asset Packaging Tool"
from android sdk manager,
and then it works.
Have a try!
更新到ADT r14后,进入Window -> SDK Manager(在 Eclipse 中)
选中“存储库”,取消选中“已安装”
等待包加载,然后选择所有 支持包,接受所有并安装它们
重新启动 Eclipse
在新的 ADT r14 上运行您的应用程序,不会出现“紧缩”错误
对我有用:)
After updating to ADT r14, go to Window -> SDK Manager (in Eclipse)
Check on 'repository', uncheck "installed"
Wait for packages to load, then select all support packages, accept all and install them
Restart Eclipse
Run your apps on new ADT r14, without 'crunch' errors
Worked for me :)
将 Android SDK Tools 更新到 r14 并将 Android SDK Platform-tools 更新到 r8 也为我解决了这个问题。
我必须在 SDK 管理器中检查“已安装”才能列出更新(即使我已经安装了以前的版本)。仅选中“新建/更新”框意味着它们不会显示在列表中。
Updating Android SDK Tools to r14 and Android SDK Platform-tools to r8 also solved this problem for me.
I had to check 'Installed' in the SDK Manager in order for the updates to be listed (even though I had the previous versions already installed). Checking only the New/Updates box meant they wouldn't show up in the list.
全部并安装它们
all and install them
我也遇到了同样的问题。
修复它:
- 在Android SDK Manager中卸载当前的sdk工具(Android SDK Tools和Android SDK Platform-tools)
- 重新安装它们的最新版本 (r14)。
I had the same issue.
To fix it :
- Uninstall the current sdk tools (Android SDK Tools and Android SDK Platform-tools) in the Android SDK Manager
- Reinstall them at their last version (r14).
我也遇到过这种问题,更新SDK时,
解决办法是重新进入Eclipse的SDK文件夹路径。
(由于某种原因,新的 SDK 安装在与原始 SDK 不同的文件夹中)
I encountered this kind of problem also, when updating SDK,
The solution was to re-enter the SDK folder path to the Eclipse.
(For some reason, the new SDK was instaslltion was in a diffrent folder from the original one)
对我来说,有效的是 Androgeek 和 tinyau 说。
总结一下。我需要更新我的 Android SDK 工具和支持工具并重新启动 eclipse。
For me, what worked was a combination of what Androgeek and tinyau said.
Summing up. I needed to update both my Android SDK Tool and Support Tools and restart eclipse.