sdwebui-java-sdk icon indicating copy to clipboard operation
sdwebui-java-sdk copied to clipboard

mozilla/public-suffix-list.txt,

Open nightcrawlerfemi opened this issue 1 year ago • 13 comments
trafficstars

Capture

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

nightcrawlerfemi avatar Jun 21 '24 08:06 nightcrawlerfemi

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

Robothy avatar Jun 21 '24 08:06 Robothy

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

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

nightcrawlerfemi avatar Jun 22 '24 16:06 nightcrawlerfemi

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

nightcrawlerfemi avatar Jun 22 '24 16:06 nightcrawlerfemi

@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.

Robothy avatar Jun 24 '24 01:06 Robothy

@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.
  • What went wrong: Execution failed for task ':app:mergeDebugJavaResource'.

A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction 2 files found with path 'mozilla/public-suffix-list.txt' from inputs: - C:\Users\Personal PC.gradle\caches\modules-2\files-2.1\org.apache.httpcomponents\httpclient\4.5.13\e5f6cae5ca7ecaac1ec2827a9e2d65ae2869cada\httpclient-4.5.13.jar - C:\Users\Personal PC.gradle\caches\modules-2\files-2.1\org.apache.httpcomponents.client5\httpclient5\5.2.1\c900514d3446d9ce5d9dbd90c21192048125440\httpclient5-5.2.1.jar Adding a packaging block may help, please refer to https://developer.android.com/reference/tools/gradle-api/8.4/com/android/build/api/dsl/Packaging for more information

nightcrawlerfemi avatar Jun 25 '24 14:06 nightcrawlerfemi

@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?

Robothy avatar Jun 25 '24 15:06 Robothy

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

nightcrawlerfemi avatar Jun 25 '24 17:06 nightcrawlerfemi

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

Robothy avatar Jun 26 '24 01:06 Robothy

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 avatar Jun 28 '24 12:06 nightcrawlerfemi

Capture2 Capture3 Capture4

nightcrawlerfemi avatar Jun 28 '24 13:06 nightcrawlerfemi

Capture1

nightcrawlerfemi avatar Jun 28 '24 13:06 nightcrawlerfemi

Capture5 The error orignates from this line

nightcrawlerfemi avatar Jun 28 '24 13:06 nightcrawlerfemi

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

Robothy avatar Jul 01 '24 01:07 Robothy