1. 程式人生 > >解決:Failed to resolve: runtime

解決:Failed to resolve: runtime

今天匯入以前同事寫的一個專案,遇到了Failed to resolve: runtime    Open File這個錯誤,懵逼了半天,最後原因在這裡:

在專案的build 檔案中

allprojects {
    repositories {
        jcenter()
        maven { url "https://jitpack.io" }
        google()
    }
}

把 google() 放在最前面 ,第一位置,如下:

allprojects {
    repositories {
        google()
        jcenter()
        maven { url "https://jitpack.io" }

    }
}

相關推薦

解決Failed to resolve: runtime

今天匯入以前同事寫的一個專案,遇到了Failed to resolve: runtime    Open File這個錯誤,懵逼了半天,最後原因在這裡: 在專案的build 檔案中 allproje

解決Failed to execute goal on project aopcore: Could not resolve dependencies for project com.cmos:

maven/Java/web/bootstrap/dataTable/app開發QQ群:566862629。希望更多人一起幫助我學習。 一、問題描述 maven工程  jar包無法下載,報錯如下 :

Failed to resolve: runtime

轉載至:https://blog.csdn.net/Timmy_zzh/article/details/80679240 我的專案中處理方式 buildscript { repositories { maven { url "https://maven.google.

解決Failed to load class "org.slf4j.impl.StaticLoggerBinder".

控制檯輸出 版本 <!-- slf4j --> <dependency> <groupId>org.slf4j</groupId>

build.gradle error錯誤Failed to resolve: common Android Studio3.1.3build.gradle error錯誤

背景:Android Studio更新到3.1.3,執行平常的專案時報錯build.gradle裡面的玄幻BUG:Error:Failed to resolve: common <a href="

Android studio Github 開源專案依賴新增失敗解決方法 Failed to resolve

AndroidStudio雖然好用也很智慧,但是有時會報一些奇奇怪怪的錯誤,提示的資訊又不清不楚的,就簡單幾個字Failed to resolve,鬼知道我是怎麼resolve不了,這次遇到一個問題,就是在Gradle裡compile GitHub的開源專案時候怎麼syn

Android開發android studio報錯 Failed to resolve: com.android.support.constraint:constraint-layout:1.0.

情景:在build.gradle檔案新增下面程式碼 compile 'com.android.support.constraint:constraint-layout:1.0.0-beta4' 點選“Sync now”後報錯: Failed to resolve:co

解決 failed to lazily initialize a collection of role: no session or session was closed問題

出現的異常為:org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: cn..domain.User.posts, no session or

解決Failed to instantiate [com.netflix.hystrix.contrib.javanica.aop.aspectj.HystrixCommandAspect]:

在ribbon中使用斷路器hystrix時報如下錯誤: 錯誤描述Error starting ApplicationContext. To display the auto-configuration report re-run your application with

hadoop解決windows下Failed to set permissions of path: mp .staging to 0700

1.0 style ati 配置文件 github unable ica perm lac 17/04/24 15:32:44 WARN util.NativeCodeLoader: Unable to load native-Hadoop library for your

AndroidStudio解決提示Failed to load AppCompat ActionBar with unknown error

err error studio 項目目錄 them 代碼段 pat androi XML Android Studio 3.1.4 問題:新項目建立時,layout下的xml項目出現Render problem - Failed to load AppCompat Ac

Failed to resolve:com.android.support:appcompat-v7:27.+ 問題的解決方法

新建一個專案,出現 Failed to resolve:com.android.support:appcompat-v7:27.+ 問題: 1 分析 android studio 中的編譯器版本與 build.gradle(app 下)不對應造成的。 開啟 build.

Failed to resolve: com.android.support:support-annotations:26.0.2的解決方案

在新增依賴的時候,出現如下報錯: 說我缺少了support-annotations:26.0.2的依賴,那麼問題來了,什麼是support-annotations?我的專案裡面用到了嗎? support-annotations註解庫簡介 android-support-anno

解決Connect to xx.xx.xxx.xx :8081 [/xx.xx.xx.xx] failed: Connection refu sed: connect -> [H

1. 自行啟動了個  Nenux 服務。想把本地工程推送到 個人私服,執行命令:mvn deploy 報錯: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (def

maven專案打jar包的時候報錯Failed to execute goal on project xxxx: Could not resolve dependencies for project

maven專案要打包成jar部署到伺服器上的時候報類似的錯: Failed to execute goal on project xxxx: Could not resolve dependencies for project xxxxxx:xxx:jar:0.

Error:Failed to resolve: com.android.support:recyclerview-v7:28.0.0解決方法

在使用Android Studio的過程中需要新增依賴recyclerview,出現報錯: Unable to resolve dependency for ':[e

vmware 安裝報錯failed to install hcmon drivers 完美解決(含VMware15啟用碼)

首先絕大部分使用網上的方法,刪除各種驅動和登錄檔都是結果都是失敗的:再次安裝的結果仍然是: 在網上搜尋幾天找到一位大神部落格,完美解決,試了之後的結果是完美安裝,搬運如下: 解決方法: 第一步: 首先桌面上新建一個文字文件,將下面的程式碼複製進去(因為CSDN部落格複製

Android Studio 報 Failed to resolve: support-core-utils 找不到依賴 錯誤解決

Google不支援通過SDK的更新來更新support庫,需要通過maven倉庫來下載支援庫。 解決方法: allprojects {     repositories {         maven { url 'https://dl.google.com/dl/and

AndroidStudio3.2 Failed to resolve:.......問題解決方法

將AndroidStudio2.2 升級為3.2期間遇到了很多問題,這裡將這個問題記錄一下,備忘。 文章參考:【android 新增依賴出現Failed to resolve:"你新增的依賴名" 或者出現 [email protected]問題】 解決方案: 在

MongoDB安裝+解決錯誤Failed to start mongod.service:until not found

在ubuntu下安裝MongoDB的步驟: 1.執行"apt-get install mongo"如果遇到找不到安裝包的話執行"apt-get update" 2.這時裝好以後應該會自動執行mongod程式,通過"pgrep mongo -l "檢視程序是否已經啟動