Google APIs throw no-crunch error for android

不打扰是莪最后的温柔 提交于 2019-12-23 13:13:43

问题


I just installed android 2.1 SDK in eclipse and created a project targeted for Google API:7. Eclipse shows an error on the project icon, and the debug window shows this error

ERROR: Unknown command 'crunch' Android Asset Packaging Tool

After quite a lot of googling, I still have no idea how to fix this error. I have already tried cleaning up the project.


回答1:


I think the problem has a generic cause ==> Partial ADT Update

Check your repositories again and then this link




回答2:


This happened to me too when I updated Eclipse from Helios to Indigo (on Windows XP)

Solution was to open Android SDK Manager and install all the default selected updates, notably I was on

  • Android SDK Tools rev 13
  • Android SDK Platform Tools rev 7

These updated to

  • Android SDK Tools rev 14
  • Android SDK Platform Tools rev 8

My project which targets 2.2 compiles and runs in debug now without any problems (NB I have all the SDKs installed including 4.0 but you can still target earlier SDKs)



来源:https://stackoverflow.com/questions/7826266/google-apis-throw-no-crunch-error-for-android

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