Pergunta

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

Foi útil?

Solução

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!

Outras dicas

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

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.

  • 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

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

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)

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top