将HtmlUnit导入Android项目
问题描述:
我从htmlunit sourceforge页面下载了htmlunit-2.xx-OSGi.jar。将罐子移到我的/ lib文件夹中,然后在导入这些文件时出现错误。
I downloaded the htmlunit-2.xx-OSGi.jar from htmlunit sourceforge page. Moved that jar into my /lib folder and when I import these I get error.
import com.gargoylesoftware.htmlunit.WebClient;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
错误:
Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_45\bin\java.exe'' finished with non-zero exit value 1
我在做什么错或如何使用该库?
What am I doing wrong or how can I use this library?