Android Unknown Command 'crunch'

柔情痞子 提交于 2019-11-26 08:24:03

问题


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


回答1:


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!




回答2:


  1. After updating to ADT r14, go to Window -> SDK Manager (in Eclipse)

  2. Check on 'repository', uncheck "installed"

  3. Wait for packages to load, then select all support packages, accept all and install them

  4. Restart Eclipse

  5. Run your apps on new ADT r14, without 'crunch' errors

Worked for me :)




回答3:


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.




回答4:


  • Go to Window -> Andriod 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



回答5:


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).




回答6:


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)




回答7:


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.



来源:https://stackoverflow.com/questions/7816679/android-unknown-command-crunch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!