Robothy / sdwebui-java-sdk

Java SDK for stable-diffusion-webui
Apache License 2.0
31 stars 6 forks source link

mozilla/public-suffix-list.txt, #13

Open nightcrawlerfemi opened 4 months ago

nightcrawlerfemi commented 4 months ago
Capture

The above error display when, i run the application, kindly assist

Robothy commented 4 months ago

The error message seems doens't related to this project.

nightcrawlerfemi commented 4 months ago

The error message seems doens't related to this project.

when i remove the libary dependency and runnig it, it work fine.

nightcrawlerfemi commented 4 months ago

The error message seems doens't related to this project. The error measage require me to exculde the path ![Uploading Capture.PNG…]()

Robothy commented 4 months ago

@nightcrawlerfemi Can you please provide more details about this issue:

  1. How you add the dependency?
  2. Run gradlew with the "--stacktrace" option to get error details.
nightcrawlerfemi commented 4 months ago

@nightcrawlerfemi Can you please provide more details about this issue:

  1. How you add the dependency?
  2. Run gradlew with the "--stacktrace" option to get error details.

apologies for the delay in response,

  1. implementation("io.github.robothy:sdwebui-java-sdk:1.2") - on build.gradle.kts on Androird studio
  2. i'm sure but this is it FAILURE: Build failed with an exception.
Robothy commented 4 months ago

@nightcrawlerfemi Seems that httpclient5-5.2.1 from sdwebui-java-sdk conflicts with httpclient-4.5.13 from some other dependencies. Could you try fixing it by upgrading Apache Http Client to version 5.2.1?

nightcrawlerfemi commented 4 months ago

4.5.13

i dont have httpcilent -4.5.13 add to my dependency, what i have is("org.apache.httpcomponents:httpmime:4.3.5")

Robothy commented 4 months ago

org.apache.httpcomponents:httpmime:4.3.5 depends on the httpclient artifact. Can you upgrade the httpmime:4.3.5 to 5.2.1 or exclude httpclient from httpmime? https://mvnrepository.com/artifact/org.apache.httpcomponents/httpmime/4.5.3

nightcrawlerfemi commented 4 months ago

org.apache.httpcomponents:httpmime:4.3.5 depends on the httpclient artifact. Can you upgrade the httpmime:4.3.5 to 5.2.1 or exclude httpclient from httpmime? https://mvnrepository.com/artifact/org.apache.httpcomponents/httpmime/4.5.3

i decide to switch to okhttp3 but i still running into an error when i run the code, kindly view screen shoot and advise ![Uploading Capture1.PNG…]()

nightcrawlerfemi commented 4 months ago
Capture2 Capture3 Capture4
nightcrawlerfemi commented 4 months ago
Capture1
nightcrawlerfemi commented 4 months ago
Capture5

The error orignates from this line

Robothy commented 4 months ago

@nightcrawlerfemi The root cause is android.os.NetworkOnMainThreadException, which is thrown by Android platform. Can you Google this exception to find out a resolution?