Skip to content

Error while dexing: Cannot invoke "String.length()" because "<parameter1>" is null #37

Open
@DeborahAnn032

Description

@DeborahAnn032

I am using HtmlUnit on my android project:

    implementation group: 'org.htmlunit', name: 'htmlunit3-android', version: '3.7.0'

However this is the exception during build for jettified-commons-text-1.11.0.jar:

java.lang.NullPointerException: Cannot invoke "String.length()" because "<parameter1>" is null

and for jettified-commons-io-2.15.0.jar:

Execution failed for task ':app:mergeExtDexDebug'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform commons-text-1.11.0.jar (org.apache.commons:commons-text:1.11.0) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=23, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Execution failed for DexingWithClasspathTransform: /Users/saverio/.gradle/caches/transforms-3/154b59ed198ece14418a8a75c0024e97/transformed/jetified-commons-text-1.11.0.jar.
         > Error while dexing.
   > Failed to transform commons-io-2.15.0.jar (commons-io:commons-io:2.15.0) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=23, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Execution failed for DexingWithClasspathTransform: /Users/saverio/.gradle/caches/transforms-3/7275a725efaeb4397c8cb51be3af2f02/transformed/jetified-commons-io-2.15.0.jar.
         > Error while dexing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions