android - AndroidAnnotations @REST: The converter class must be a subtype of org.springframework.http.converter.HttpMessageConverter RestClient.java -
i want create rest client using androidannotations
when define converters on @rest annotation, receive following compile error:
the converter class must subtype of org.springframework.http.converter.httpmessageconverter restclient.java
i use libraries:
/libs
androidannotations-api-2.7.1.jar gson-2.2.4.jar jackson-core-asl-1.9.13 jackson-asl-0.9.5 jackson-mapper-asl-1.9.13 spring-android-auth-1.0.1.release.jar spring-android-core-1.0.1.release.jar spring-android-rest-template-1.0.1.release.jar
/compile-libs
androidannotations-2.7.1.jar
my source similar example androidannotations
package com.sinffredy.spring; import org.springframework.http.converter.json.mappingjacksonhttpmessageconverter; import com.googlecode.androidannotations.annotations.rest.get; import com.googlecode.androidannotations.annotations.rest.rest; @rest(rooturl = "http://my.url/ajax/services", converters = { mappingjacksonhttpmessageconverter.class }) public interface restclient { @get("/.do?valor={search}") respuesta getrespuesta(string search); }
thanks in advance !!!
i solved it!!! change eclipse. using helios android development toolkit
now dowload the android sdk includes eclipse + adt plugin. use old workspace proyect , work fine!!!.
Comments
Post a Comment