Skip to content

Android compilation error with package-info cannot be represented in dex format #4

@cmeng-git

Description

@cmeng-git

with the inclusion of 'htmlunit-android' in the android studio build.gradle

implementation 'net.sourceforge.htmlunit:htmlunit-android:2.59.0'

Build under the following android studio environment

Build: AI-212.5712.43.2112.8512546, 202204281627, 

AI-212.5712.43.2112.8512546, JRE 11.0.12+0-b1504.28-7817840x64 JetBrains s.r.o., OS Linux(amd64) v5.15.0-39-generic,

AS: Chipmunk | 2021.2.1; Kotlin plugin: 212-1.7.0-release-281-AS5457.46; Android Gradle Plugin: 4.2.2; Gradle: 6.8; Gradle JDK: version 11.0.12; NDK: from local.properties: (not specified), latest from SDK: 22.1.7171670; LLDB: pinned revision 3.1 not found, latest from SDK: (package not found); CMake: from local.properties: (not specified), latest from SDK: 3.18.1-g262b901, from PATH: 3.22.1

will produced the following error, and the build cannot proceed.

com.android.tools.r8.errors.b: Class descriptor 'Lnetscape\javascript\package-info;' cannot be represented in dex format.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions