error adding libraries

I'm trying to add these two libraries to my Arduino IDE

http://playground.arduino.cc/Main/RunningAverage
I seem to have no idea what I'm doing.
I tried to extract them using Sketch>Include Library>Add .Zip Library
But I keep getting the error message "Specified folder/zip file does not contain a valid library"

What am I doing wrong?

The problem you're having with installing the libraries is that Sketch>Include Library>Add .Zip Library requires that the library be located in the root of the .zip file. Actually these repositories both contain many libraries. So it's not possible to use that installation technique. You will need to manually install the libraries.

i2cdevlib:

  • Download https://github.com/jrowberg/i2cdevlib/archive/master.zip
  • Copy the contents of the Arduino folder in the downloaded file to {sketchbook folder}/libraries. You can find the location of your sketchbook folder at File > Preferences > Sketchbook location
  • Restart the Arduino IDE if it's running.

RunningAverage:

  • Download https://github.com/RobTillaart/Arduino/archive/master.zip
  • Copy the Arduino/libraries/RunningAverage folder from the downloaded file to {sketchbook folder}/libraries. You can find the location of your sketchbook folder at File > Preferences > Sketchbook location
  • Restart the Arduino IDE if it's running.