NoSuchMethodError when using WireMock in an Android integration test

前端 未结 2 1964
借酒劲吻你
借酒劲吻你 2020-12-21 19:35

Got the following stack trace when trying to start a WireMockServer in my robotium android test. Might be a conflict between 2 versions of Apache Http client, but I did not

2条回答
  •  粉色の甜心
    2020-12-21 19:51

    I'm afraid that as of 1st Match 2015 WireMock does not support Android. Progress towards support is being tracked in this github issue.

    It does work quite well in Roboelectric tests because these run in a standard JVM, so you may be able use it for that aspect of testing at least.

提交回复
热议问题