HtmlUnit-Android icon indicating copy to clipboard operation
HtmlUnit-Android copied to clipboard

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

Open cmeng-git opened this issue 2 years ago • 0 comments

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.

cmeng-git avatar Jun 23 '22 00:06 cmeng-git