2017-08-23 27 views
0

我正在開發appium測試。我安裝了eclipse,appium和NGTest庫以及其他一些東西。 當試圖運行我的測試(設備連接通過PDANet,Appium服務器正在運行)我得到有關容器路徑的錯誤。eclipse容器路徑不能爲空

但是,我發現這個文件的.classpath:

<?xml version="1.0" encoding="UTF-8"?> 
<classpath> 
<classpathentry kind="src" path="src"/> 
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> 
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> 
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/cglib-nodep-3.2.4.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/commons-codec-1.10.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/commons-exec-1.3.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/commons-io-2.5.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/commons-lang3-3.5.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/commons-logging-1.2.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/cssparser-0.9.22.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/gson-2.8.0.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/guava-21.0.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/hamcrest-core-1.3.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/htmlunit-2.26.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/htmlunit-core-js-2.26.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/htmlunit-driver-2.26.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/httpclient-4.5.3.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/httpcore-4.4.6.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/httpmime-4.5.3.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/javax.servlet-api-3.1.0.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/jetty-io-9.4.1.v20170120.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/jetty-util-9.4.1.v20170120.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/jna-4.1.0.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/jna-platform-4.1.0.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/junit-4.12.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/neko-htmlunit-2.25.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/phantomjsdriver-1.4.0.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/sac-1.3.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/serializer-2.7.2.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/websocket-api-9.4.3.v20170317.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/websocket-client-9.4.3.v20170317.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/websocket-common-9.4.3.v20170317.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/xalan-2.7.2.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/xercesImpl-2.11.0.jar"/> 
<classpathentry kind="lib" path="C:/Users/zachmste/Downloads/lib/xml-apis-1.4.01.jar"/> 
<classpathentry kind="con" path="org.testng.TESTNG_CONTAINER"/> 
<classpathentry kind="output" path="bin"/> 
</classpath> 

所以我錯過了什麼?有任何想法嗎?

+0

您是否確定TestNG和Android框架已針對該項目進行了正確設置?如果你真的有第二個org.eclipse.jdt.launching.JRE_CONTAINER值? – nitind

+0

我不確定。我如何驗證TestNG和Android設置正確? 我應該刪除JRE_Container值嗎? –

+0

是的。去掉它。 – nitind

回答

0

我能夠通過重新克隆項目並完成開發分支的結帳來修復它。 現在我可以開始我的應用程序。

相關問題