添加appium依赖项后Gradle构建错误

时间:2015-12-02 06:29:15

标签: android android-studio appium

我希望使用appium进行自动化测试(我正在使用Android Studio for dev)。
我为appium添加了一个gradle依赖。
但是,由于以下内容,我无法运行该应用程序警告和非零退出错误。

 criterion = df['price_trend'].map(lambda x: len(x) > 0 and all(len(pair) == 2 for pair in x))
 df[criterion].groupby('Id', group_keys=False).apply(f)

错误如下:

Warning:Dependency org.apache.httpcomponents:httpclient:4.4.1 is ignored for debug as it may be conflicting with the internal version provided by Android.
         In case of problem, please repackage it with jarjar to change the class packages

我的 build.gradle 文件是:

> Error:Execution failed for task ':app:preDexDebug'.
> java.lang.IllegalArgumentException: Source
> D:\Learning\GDLearning\app\build\intermediates\pre-dexed\debug\websocket-client-9.2.11.v20150529-344b13c53e6f4871f43101e675dc9239cd9ab46b.jar
> and destination
> D:\Learning\GDLearning\app\build\intermediates\pre-dexed\debug\websocket-client-9.2.11.v20150529-344b13c53e6f4871f43101e675dc9239cd9ab46b.jar
> must be different

任何建议/帮助都会很棒!
我在SO上进行了探索,尝试过一些东西,但它没有用。

1 个答案:

答案 0 :(得分:0)

您无需将appium依赖项推送到您的应用Build.gradle文件。 您只需按照官方页面上的说明操作即可。

http://appium.io/slate/en/master/?ruby#quick-start

也许你应该:

1) Download Appium
2) Setting Evironment variables (ANDROID_HOME, JAVA_HOME, ..)
3) Play with the Appium 
4) Write some test code
相关问题