Xamarin - 绑定.jar库

时间:2014-07-01 17:37:46

标签: jar xamarin xamarin.android android-testing android-espresso

我正致力于绑定Espresso jar。我跟着these steps,但没有成功。

输出:

------ Build started: Project: espresso, Configuration: Debug Any CPU ------
JARTOXML : warning J2X9001: Couldn't load class org/hamcrest/integration/EasyMock2Adapter : java.lang.NoClassDefFoundError: org/easymock/IArgumentMatcher
JARTOXML : warning J2X9001: Couldn't load class org/hamcrest/integration/JMock1Adapter : java.lang.NoClassDefFoundError: org/jmock/core/Constraint
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Bindings.targets(253,5): error MSB6006: "java.exe" exited with code 1.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

这些是我加入的罐子:

enter image description here

有没有人有建议,或者我需要做些什么来解决这个问题,或者为我的项目正确绑定Espresso?

1 个答案:

答案 0 :(得分:0)

之前发生过这种情况,我通过在我的android应用程序项目中包含jar文件解决了这个问题。使用" AndroidJavaLibrary的构建操作将其添加到根目录。"