1. 程式人生 > >gradle升到4.4後,報Unable to resolve dependency for ':[email

gradle升到4.4後,報Unable to resolve dependency for ':[email

Android studio可以升級到3.1了,預設用的是gradle4.4

修改為

distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
buildscript {
    repositories {
        jcenter()
        google()
        maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.0'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { jcenter() maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'
} maven { url "https://jitpack.io" } google() } }

再把所有的依賴包改成,implementation.

build後就開始報各個依賴包 Unable to resolve dependency for ':[email protected]/compileClasspath': Could not resolve com.xxx.

查了半天,所有配置都是對的,離線模式(offline work)也關了.

stackoverflow 有個回答,確定是網被牆了


開啟shadowsocks,把http proxy的代理指向本地。


再次build,OK。

沒有找到問題的根源時,真是無頭蒼蠅一樣亂撞。

相關推薦

gradle4.4Unable to resolve dependency for ':<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1d7c6d6d5d79787f687a">[email

Android studio可以升級到3.1了,預設用的是gradle4.4修改為distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zipbuildscript { re

Android Studio 3.0.1 gradle編譯錯 Error : unable to resolve dependency for <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a0c1

在app目錄下build.gradle中引用了第三方類庫,gradle編譯時不斷報錯,無法resolve第三方類庫,或者無法download第三方類庫dependencies { implementation fileTree(include: ['*.jar'],

Android StudioUnable to resolve dependency for ':<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="721302023200171e">[email&#

Android Studio報錯Unable to resolve dependency for’:[email protected]/compileClasspath’:無法引用任何外部依賴的解決辦法 Android Studio 在引用外部依賴時

android studio更新3.2遇到的坑unable to resolve dependency for <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5a3b2a2a1a7474747474

距離第一次寫部落格轉眼一週多了,為什麼一直沒寫,真的這個過程中遇到了一些棘手的小麻煩 android studio更新3.2遇到的坑 4天前手賤更新了studio,然後新建工程就一堆報錯,照著網上的很多類似的部落格進行了處理,總結了一下無非以下幾種 1、降低依

關於 Unable to resolve dependency for ':<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="69081919290d0c0b1c0e28070d1b06000d3d0c1

Android studio升級到3.0往上之後,遇到的最噁心的一件事,本人及其懶惰,從來不寫文章,但這個問題還是要記錄下來。 百度了NNNNN多之後,問題都沒有解決,像關掉"offline work"開關、或者匯入的model 的build版本不一致這種方案,我也不知道發

Unable to resolve dependency for :<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5b3a2b2b1b3f3e23142b2f32343528">[email 

這個是android studio 3.0的坑  如果你的專案裡面有好多個依賴module就會報很多行相似的錯誤原因是你的app下面的build.gradel裡面的buildTypes{ debug{ ... } release{ ..

unable to resolve dependency for <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4322333303">[email protected]a>。。。解決方

最近把android studio升級到了3.2,出了一堆問題,主要就是無法更新無法下載之類的。 包括出現的: unable to resolve dependency for [email protected]。。。 Open File Show

spring事務(4)-----複習<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="3a494a4853545d7a7b4f4e554d53485f5e">[email protected]<

什麼是註解 傳統的Spring做法是使用.xml檔案來對bean進行注入或者是配置aop、事物,這麼做有兩個缺點: 1、如果所有的內容都配置在.xml檔案中,那麼.xml檔案將會十分龐大;如果按需求分開.xml檔案,那麼.xml檔案又會非常多。總之這將導致配置檔案的可讀性與可維護性變得很低 2、在開發中

錯誤解決辦法:<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="722d283c21133b11373643370432">[email protected]a>@GLIBCXX_3.4

  使用gcc編譯,產生錯誤如下: /usr/bin/ld: gh_datacenter.o: undefined reference to symbol '[email protected]@GLIBCXX_3.4' //usr/lib/x86_64-linux-gnu/libstd

ossec study-4:如何設定將ossec的警告郵件從root(<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a4d6cbcbd0e4c8cbc7c5c8cccbd7d0">[email

之前在安裝的時候,我們採用的是將alert發給本地,當時 的郵箱名為:[email protected] Stmp:127.0.0.1.有一個嚮導提到配置/etc/aliases就可以 完成將傳送到root的郵件轉發到其他外部郵件伺服器。 方法很簡單: 1.

@loj - <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b284818781f2">[email protected]a>「CodePlus 2018 4 月賽」組合數問題 2

目錄 @[email protected] @[email protected] @accepted [email protected] @[email protected] @[email protected] 請你找到 k

@loj - <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="3c0a0f09087c">[email protected]a>「CodePlus 2018 4 月賽」最短路

目錄 @[email protected] @[email protected] @accepted [email protected] @[email protected] @[email protected] 企鵝國中有 N

windows中安裝RabbitMQ時:unable to connect to node <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e1938083838895a1999999">[email

前言最近在Windows server 2012 R2的百度雲伺服器上安裝rabbitmq時,在執行rabbitmqctl status命令時,一直報錯,開始時出現的如下錯誤:Error: unable to connect to node [email prote

requires a peer of <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="107762657e6450">[email protected]a>>=0.4.0

為什麼我會得到下面的錯誤?我的grunt 版本是> v0.4.0 的。npm WARN [email protected] requires a peer of [email 

MyEclipse破解中遇到的問題Ⅱ(run.bat檔案一閃而過或者錯)<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="8fbdbcbacfbcb9ba">[email protected

MyEclipse破解中遇到的問題Ⅱ(run.bat檔案一閃而過,或者報錯) 系統: 破解檔案出現問題(這個沒有提示錯誤,而在10.0裡面那個破解檔案,出現的提示是: .Exception in thread “main” java.lang.ClassNo

無法解析的外部符號 <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1e41497770537f77705e2f28">[email protected]a>該符號在函式 ___tmai

#include using namespace std; int main() { cout <<“This is a C++ program.”; return 0; } 1>------ 已啟動生成: 專案: hello1, 配置: Debug Win32 ---

Makefile有三個非常有用的變數。分別是<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a480e4">[email protected]a>$^$

原文地址:https://blog.csdn.net/u013774102/article/details/79043559 假設我們有下面這樣的一個程式,原始碼如下:  /* main.c */ #include "mytool1.h" #include "mytool2.h" i

Unable to resolve dependency for ':<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="56372626163233342331">[email prot

今天匯入Android專案的時候突然遇到了一個問題,‘Unable to resolve dependency’ 有點頭疼,然後就在網上找了很多方法,發現都不行,最後發現,原來是 這個檔案的配置出了錯,我新匯入的gradle-4.6-all.zip,我的專案的是gradle-4.4

error LNK2019: 無法解析的外部符號 <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="702f031f131b1504304142">[email protected]a>

Reason: 學習使用socket,在stdafx.h檔案加了#include ,編譯 #include "stdafx.h" #include   using namespace std;   int _tmain(int argc