Getting error with Weatherlib API Android

272 Views Asked by At

I have tried to use directly activity given here: https://gist.githubusercontent.com/survivingwithandroid/d671961572899cb8f4b4/raw/MyActivity.java

I have just copied weatherlib jar into my build path libs and copied the above activity to my project with required manifest permission. Yet, my sdk says- create a class WeatherDefaultClient at this line -

 import com.survivingwithandroid.weather.lib.client.okhttp.WeatherDefaultClient;

So how do I fix this?

1

There are 1 best solutions below

1
On

Are you using Eclipse or Android Studio?

You should use Android Studio and import the project using gradle dependency. There is a sample project to use.