error unknown option ‘–no-crunch’ android asset packaging tool

On my eclipse running on Ubuntu, I had just updated my Android SDK and was trying to run my android applications when I ran into the following error

error unknown option ‘–no-crunch’

android asset packaging tool

I thought I may be missing something, so I tried updating both my Android AVD and SKD but noticed another error while updating the SDK. The message was similar to the following:

Failed to fetch url https://dl-ssl.google.com/android/repository/repository.xml

In order to fix the problem of fetching the repository, I set the option to force https downloads to take place by http as advised by Vikram Pant in his blog.

To do this, I opened the Android SDK and AVD manager by going to <path to sdk>/tools/ directory.

Then I ran the following command :

$ ./android

Then I clicked Settings and checked the option to force https downloads to use http.

Next, I opened the Android SDK manager in eclipse. There were a few packages to install and others to update.

I first pressed the Delete Packages… button to delete the obsolete ones. Next, I pressed the Install Packages… to install fresh ones. That solved the problem.