-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Error in Build with 2.59.0 SNAPSHOT: netscape\javascript\package-info;' cannot be represented in dex format #2
Comments
@sengsational implementation files('libs/htmlunit-android-2.59.0.jar') I also encountered this problem. How can I solve it |
@sengsational Now it has worked for me in Android studio |
I try to add some content to filter in pom.xml file <exclude>netscape/package-info.class</exclude>
<exclude>netscape/javascript/package-info.class</exclude> and delete lines 61~63
Finally, add in Android studio
Now it has worked for me in Android studio |
@zerorooot @lqh995204185 Thank you for the suggestions. I am unable to make progress. I am afraid that because I do not have proper context to know where and how to make the suggested changes, I am getting a Here are the steps I executed:
Resulting in:
RESULTING ERROR: Transform's input file does not exist: C:\Users\Owner\AndroidStudioProjects\MyApplication2\app\libs\htmlunit-android-2.59.0.jar. (See https://issuetracker.google.com/issues/158753935) |
You need to recompile a copy based on the source code, instead of directly changing the htmlunit-android-2.59.0.jar file |
Fix problem when compiling in Android HtmlUnit#2
I have not found instructions for building the My first attempts at building the I have started adding instructions, but do not know the appropriate steps to complete the build. Please make a pull request for https://github.com/sengsational/htmlunit-android/edit/main/README.md . I will work through the steps that you provide and add detail, if needed. Building Project SourceTo build this project in Android Studio:
|
To try to make it a bit more clear:
|
Why you think we have to shade this jars - is there some conflict with the android sdk classes or is this something special for your project? |
This version has resolved my problem. Specifically, to
The above requires that
|
@rbri
So i removed it. |
@zerorooot can you please check with the latest snapshot build |
@rbri |
@zerorooot a release is planned for this weekend. |
build.grade:
Error found under jetified-htmlunit-android-2.59.0-SNAPSHOT.jar:
Running gradlew -q app:dependencies --configuration releaseRuntimeClasspath:
Earlier package-info issue: HtmlUnit/htmlunit#133 (comment)
The text was updated successfully, but these errors were encountered: