API declarations must be interfaces- Retrofit
问题 I am try to do simple get response using Retrofit . And i have error java.lang.IllegalArgumentException: API declarations must be interfaces. . I can not figure out what exactly the problem. I have this error when i try to do CategoryJsonParser categoryParsed = retrofit.create(CategoryJsonParser.class); . So its my interface: public interface InterfaceForCategory { @GET("categories?api_key=l6pdqjuf7hdf97h1yvzadfce") Call<List<CategoryJsonParser>> getData(); } How i create retrofit in main act