Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IllegalStateException: Base URL required. #2

Open
jeffreyrajanofficial opened this issue Feb 20, 2017 · 4 comments
Open

IllegalStateException: Base URL required. #2

jeffreyrajanofficial opened this issue Feb 20, 2017 · 4 comments

Comments

@jeffreyrajanofficial
Copy link

While loading URL I'm getting the following error:

FATAL EXCEPTION: main
 Process: com.necistudio.pdfengineme, PID: 31716
  java.lang.IllegalStateException: Base URL required.
  at retrofit2.Retrofit$Builder.build(Retrofit.java:546)
  at com.necistudio.vigerpdf.network.RestClient.getClient(RestClient.java:57)
  at com.necistudio.vigerpdf.manage.RenderingPDFNetwork.<init>(RenderingPDFNetwork.java:35)
  at com.necistudio.vigerpdf.VigerPDF.<init>(VigerPDF.java:25)
  at com.necistudio.pdfengineme.MainActivity.fromNetwork(MainActivity.java:67)
  at com.necistudio.pdfengineme.MainActivity.access$000(MainActivity.java:22)
  at com.necistudio.pdfengineme.MainActivity$2.onClick(MainActivity.java:51)
  at android.view.View.performClick(View.java:5609)
  at android.view.View$PerformClick.run(View.java:22262)
  at android.os.Handler.handleCallback(Handler.java:751)
  at android.os.Handler.dispatchMessage(Handler.java:95)
  at android.os.Looper.loop(Looper.java:154)
  at android.app.ActivityThread.main(ActivityThread.java:6077)
  at java.lang.reflect.Method.invoke(Native Method)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
@Perfectminders
Copy link

Me too getting this error. Please update...

java.lang.IllegalStateException: Base URL required.
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2693)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2758)
at android.app.ActivityThread.access$900(ActivityThread.java:177)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1448)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5942)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)
Caused by: java.lang.IllegalStateException: Base URL required.
at retrofit2.Retrofit$Builder.build(Retrofit.java:546)
at com.necistudio.vigerpdf.network.RestClient.getClient(RestClient.java:57)
at com.necistudio.vigerpdf.manage.RenderingPDFNetwork.(RenderingPDFNetwork.java:35)
at com.necistudio.vigerpdf.VigerPDF.(VigerPDF.java:25)

@aerdy
Copy link
Owner

aerdy commented Mar 2, 2017

add baseurl in class restclient

example
Retrofit client = new Retrofit.Builder()
.baseUrl("http://necistudio.com")
.client(okclient)
.addConverterFactory(GsonConverterFactory.create())
.build();
ApiInterface = client.create(ApiInterface.class);

@Perfectminders
Copy link

Perfectminders commented Mar 6, 2017 via email

@aerdy
Copy link
Owner

aerdy commented Mar 8, 2017

Clear issues all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants