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

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

Open
nightcrawlerfemi opened this issue Jun 21, 2024 · 13 comments
Open

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

nightcrawlerfemi opened this issue Jun 21, 2024 · 13 comments

Comments

@nightcrawlerfemi
Copy link

Capture

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

@Robothy
Copy link
Owner

Robothy commented Jun 21, 2024

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

@Robothy Robothy closed this as completed Jun 21, 2024
@nightcrawlerfemi
Copy link
Author

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

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

@nightcrawlerfemi
Copy link
Author

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

@Robothy Robothy reopened this Jun 24, 2024
@Robothy
Copy link
Owner

Robothy commented Jun 24, 2024

@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
Copy link
Author

@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

@Robothy
Copy link
Owner

Robothy commented Jun 25, 2024

@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
Copy link
Author

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
Copy link
Owner

Robothy commented Jun 26, 2024

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
Copy link
Author

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
Copy link
Author

Capture2 Capture3 Capture4

@nightcrawlerfemi
Copy link
Author

Capture1

@nightcrawlerfemi
Copy link
Author

Capture5 The error orignates from this line

@Robothy
Copy link
Owner

Robothy commented Jul 1, 2024

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

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

2 participants