我有一個發送JSON類似於這樣一個Web服務:如何檢索帶有android註釋的JSON數組?
[
"4.11.3",
"4.10.7",
"4.10.2",
"4.9.1"
]
我的REST接口看起來是這樣的:
@Rest(...)
public interface RestInterface {
@Get("...")
String[] getVersions();
}
但我總是得到null作爲返回值。請有人幫助我嗎?
我以前沒有使用過REST API,但是我知道你必須添加一個轉換器。你仔細閱讀[this](https://github.com/excilys/androidannotations/wiki/Rest%20API)嗎? – WonderCsabo