![](/img/trans.png)
[英]Failed to resolve com.android.support.test:runner:1.0.0 and 'com.android.support.test.espresso:espresso-core:3.0.0'
[英]Failed to resolve: com.android.support.test:testing-support-lib:0.1
按照這里的說明,我已經在另一個項目上使用了AndroidJUnitRunner。
現在,我試圖在另一個項目中使用它,但是遇到了問題。
我補充說:
testCompile('com.android.support.test:testing-support-lib:0.1') {
exclude group: 'junit' // junit:junit-dep conflicts with junit:unit
}
發生什么是Android Studio顯示錯誤:
無法解決:com.android.support.test:testing-support-lib:0.1
並要求我安裝一個新軟件包。 我接受AS顯示:
Loading SDK information...
Refresh Sources:
Fetched Add-ons List successfully
Refresh Sources
Installing Archives:
Preparing to install archives
Installing Android Support Repository, revision 15
Installed Android Support Repository, revision 15
Done. 1 package installed.
但是當我嘗試同步時,我再次遇到相同的錯誤
無法解決:com.android.support.test:testing-support-lib:0.1
AS要求我再次安裝。
我檢查了該軟件包是否已安裝。
復制您的評論@CommonsWare,只是為了快速訪問。
com.android.support.test:testing-support-lib:0.1
已替換為 com.android.support.test:rules:0.3
參見github.com/commonsguy/cw-omnibus/tree/master/Testing/JUnit4
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.