我從Android Developer站點的Volley培訓中嘗試實施示例:來自此處的GSON請求https://developer.android.com/training/volley/request-custom.html如何擴展Volley響應(修復'com.android.volley.Response'中沒有默認構造函數)
當我嘗試和延長反應,我得到一個消息說"There is no default constructor available in 'com.android.volley.Response'
public class AlertCountResponse extends Response implements Serializable{
@SerializedName("alertCount")
private int mAlertCount;
}
如何延長com.android.volley.Response?
謝謝,