안녕하세요
안드로이드 USB디버깅에선 잘됐는데 APK를 추출하려니 문제가생겨서 질문드립니다.
package org.techtown.myjoinmembership;
import com.android.volley.Response;
import com.android.volley.toolbox.StringRequest;
import java.util.HashMap;
import java.util.Map;
public class LoginRequest extends StringRequest {
final static private String URL = "주소";
private Map<String, String> parameters;
public LoginRequest(String id, String password, Response.Listener<String> listener)
{
super(Method.POST, URL, listener, null);
parameters = new HashMap<>();
parameters.put("id", id);
parameters.put("password", password);
}
@Override
public Map<String, String> getParams(){
return parameters;
}
}
위에 소스에서 오류가 디폴트생성자가 없다는 오류가 발생해서
public LoginRequest(){} 를해봤지만 여전히 오류가발생하여 해외사이트를
뒤져보다가 그 확장같은걸 해야한다고 들었는데 어떻게 해야하는지도
잘모르겠어서 질문올립니다.. 도와주세요
Error:Error: This class should provide a default constructor (a public constructor with no arguments) (org.techtown.myjoinmembership.LoginRequest) [Instantiatable]
**에러로그**
2017-12-12
오후 3:55 Executing tasks: [:app:assembleRelease]
오후 3:55 Gradle build finished with 1 error(s) in 8s 161ms
오후 3:55 Generate Signed APK: Errors while building APK. You can find the errors in the 'Messages' view.