aerdy / Viger-PDF

library pdf for android
https://github.com/aerdy/Viger-PDF
32 stars 23 forks source link

IllegalStateException: Base URL required. #2

Open jeffreyrajanofficial opened 7 years ago

jeffreyrajanofficial commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

Hi Anna arthdi putra,

I have changed the base URL to http://necistudio.com.

Thanks

On Thu, Mar 2, 2017 at 8:20 AM, Anna arthdi putra notifications@github.com wrote:

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);

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/aerdy/Android-Viger_View_Pager_PDF_OpenSource/issues/2#issuecomment-283540592, or mute the thread https://github.com/notifications/unsubscribe-auth/ANhzVkReLsxtMis1h1vnTSxJt8mobNINks5rhi56gaJpZM4MGAil .

-- Regards, KPN Karthik, Chief Technologist

PerfectMinders Mobile App Builders Chennai http://www.perfectminders.com contact : 9600019678

aerdy commented 7 years ago

Clear issues all.