2017-07-17 163 views
-1

配置根項目「預備者」時發生問題。Gradle無法找到陰影插件

> Could not resolve all files for configuration ':classpath'. 
> Could not find com.github.jengelman.gradle.plugins:shadow:2.0.1. 

搜索在以下位置:

  file:/Users/lion-mane/.m2/repository/com/github/jengelman/gradle/plugins/shadow/2.0.1/shadow-2.0.1.pom 
     file:/Users/lion-mane/.m2/repository/com/github/jengelman/gradle/plugins/shadow/2.0.1/shadow-2.0.1.jar 
     https://repo1.maven.org/maven2/com/github/jengelman/gradle/plugins/shadow/2.0.1/shadow-2.0.1.pom 
     https://repo1.maven.org/maven2/com/github/jengelman/gradle/plugins/shadow/2.0.1/shadow-2.0.1.jar 

Required by: 
project : 
+1

什麼是影子插件?你可以在https://mvnrepository.com/找到它嗎? – pal

+0

@pal這是一個非常普通的圖書館。 https://github.com/johnrengelman/shadow –

回答

2

看起來你只是根據提供的搜索路徑在你的倉庫mavenCentral()

您需要改變JCenter。

buildscript { 
    repositories { 
     jcenter() 
    } 
+0

它的作品謝謝! –