网络请求初始化错误
来源:5-4 Restful请求的处理-2
叶问0
2017-12-05
java.lang.ExceptionInInitializerError
at com.longfor.core.net.RestCreator$OkHttpHolder.access$100(RestCreator.java:0)
at com.longfor.core.net.RestCreator.getRestService(RestCreator.java:69)
at com.longfor.core.net.RestClient.request(RestClient.java:66)
at com.longfor.core.net.RestClient.get(RestClient.java:95)
at com.longfor.example.ExampleDelegate.testRestClient(ExampleDelegate.java:54)
at com.longfor.example.ExampleDelegate.onBindView(ExampleDelegate.java:29)
at com.longfor.core.delegates.BaseDelegate.onCreateView(BaseDelegate.java:74)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:2354)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1419)
at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1740)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1809)
at android.support.v4.app.FragmentManagerImpl.dispatchStateChange(FragmentManager.java:3217)
at android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:3171)
at android.support.v4.app.FragmentController.dispatchActivityCreated(FragmentController.java:192)
at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:560)
at android.support.v7.app.AppCompatActivity.onStart(AppCompatActivity.java:177)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1254)
1回答
-
傅猿猿
2017-12-05
你的API域名格式要正确,http打头,/结尾
00
相似问题