0
我的界面错误在改造连接
@POST("/insert.php")
void login(Callback<Response> callback);
Java代码
Retrofit adapter = new Retrofit.Builder()
.baseUrl(ROOT_URL) //Setting the Root URL
.addConverterFactory(GsonConverterFactory.create())
.build(); //Finally building the adapter
Register_Retrofit api = adapter.create(Register_Retrofit.class);
api.login(new Callback<Response>() {
public void onResponse(Call<Response> call, Response<Response> response) {
}
public void onFailure(Call<Response> call, Throwable t) {
}
});
你能澄清“错误”吗? '错误'是什么意思?编译时间?运行?堆栈跟踪?只是你的代码不能按照你期望的方式运行?你期望它做什么,它做了什么(不)? – Stultuske
错误是什么? –