Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 1 year ago.
Improve this question
I have invalidated caches and restarted deleted .gradle files, nothing seems to work
I keep on getting this error whenever I build using release variant
It works fine while using debug version
I currently have no dependencies that weren't set for me
I'd be eternally grateful if I could get a solution, that doesn't involve suppressing lint
Execution failed for task ':app:lintVitalAnalyzeRelease'.
> Could not resolve all files for configuration ':app:lintClassPath'.
> Could not find org.codehaus.groovy:groovy-all:3.0.7.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/codehaus/groovy/groovy-all/3.0.7/groovy-all-3.0.7.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1
> Could not find org.jetbrains.kotlin:kotlin-reflect:1.4.32.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-reflect/1.4.32/kotlin-reflect-1.4.32.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadata sources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:sdk-common:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.lint:lint:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.lint:lint:30.0.1 > com.android.tools.lint:lint-api:30.0.1
> Could not find org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.32.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4.32/kotlin-stdlib-jdk8-1.4.32.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:sdk-common:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:common:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.build:builder:7.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.build:builder-model:7.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.build:manifest-merger:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.lint:lint:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:repository:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:sdk-common:30.0.1 > com.android.tools.analytics-library:shared:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.build:builder:7.0.1 > com.android.tools.analytics-library:tracker:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.lint:lint:30.0.1 > com.android.tools.lint:lint-api:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.lint:lint:30.0.1 > com.android.tools.lint:lint-checks:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.lint:lint:30.0.1 > com.android.tools.lint:lint-api:30.0.1 > com.android.tools.lint:lint-model:30.0.1
> Could not find org.bouncycastle:bcpkix-jdk15on:1.56.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/bouncycastle/bcpkix-jdk15on/1.56/bcpkix-jdk15on-1.56.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:sdk-common:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.build:builder:7.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.build:builder:7.0.1 > com.android.tools.build:apkzlib:7.0.1
> Could not find org.bouncycastle:bcprov-jdk15on:1.56.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/bouncycastle/bcprov-jdk15on/1.56/bcprov-jdk15on-1.56.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:sdk-common:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.build:builder:7.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.build:builder:7.0.1 > com.android.tools.build:apkzlib:7.0.1
> Could not find com.google.guava:guava:30.1-jre.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/guava/guava/30.1-jre/guava-30.1-jre.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:sdk-common:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:common:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.lint:lint:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:sdk-common:30.0.1 > com.android.tools.build:builder-test-api:7.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:sdk-common:30.0.1 > com.android.tools.analytics-library:shared:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.build:builder:7.0.1 > com.android.tools.analytics-library:tracker:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.lint:lint:30.0.1 > com.android.tools.lint:lint-api:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.lint:lint:30.0.1 > com.android.tools.lint:lint-checks:30.0.1
> Could not find org.glassfish.jaxb:jaxb-runtime:2.3.2.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/glassfish/jaxb/jaxb-runtime/2.3.2/jaxb-runtime-2.3.2.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:sdk-common:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:sdklib:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:repository:30.0.1
> Could not find com.google.code.gson:gson:2.8.6.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/code/gson/gson/2.8.6/gson-2.8.6.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:sdk-common:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:sdklib:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.build:manifest-merger:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:sdk-common:30.0.1 > com.android.tools.analytics-library:shared:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.lint:lint:30.0.1 > com.android.tools.lint:lint-checks:30.0.1
> Could not find com.google.protobuf:protobuf-java:3.10.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/protobuf/protobuf-java/3.10.0/protobuf-java-3.10.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:sdk-common:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:sdk-common:30.0.1 > com.android.tools.ddms:ddmlib:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:sdk-common:30.0.1 > com.android.tools.build:aapt2-proto:4.1.0-alpha01-6193524
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.build:builder:7.0.1 > com.android.tools.analytics-library:protos:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.build:builder:7.0.1 > com.android.tools.analytics-library:tracker:30.0.1
> Could not find javax.inject:javax.inject:1.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/javax/inject/javax.inject/1/javax.inject-1.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:sdk-common:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.build:builder:7.0.1
> Could not find net.sf.kxml:kxml2:2.3.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:sdk-common:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.build:manifest-merger:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.lint:lint:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:sdk-common:30.0.1 > com.android.tools.ddms:ddmlib:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:sdk-common:30.0.1 > com.android.tools.layoutlib:layoutlib-api:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.lint:lint:30.0.1 > com.android.tools.lint:lint-api:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.lint:lint:30.0.1 > com.android.tools.lint:lint-checks:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.lint:lint:30.0.1 > com.android.tools.lint:lint-api:30.0.1 > com.android.tools.lint:lint-model:30.0.1
> Could not find org.jetbrains.intellij.deps:trove4j:1.0.20181211.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/jetbrains/intellij/deps/trove4j/1.0.20181211/trove4j-1.0.20181211.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:sdk-common:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.external.com-intellij:intellij-core:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.lint:lint:30.0.1 > com.android.tools.lint:lint-checks:30.0.1
> Could not find xerces:xercesImpl:2.12.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/xerces/xercesImpl/2.12.0/xercesImpl-2.12.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:sdk-common:30.0.1
> Could not find org.apache.commons:commons-compress:1.20.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/apache/commons/commons-compress/1.20/commons-compress-1.20.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:sdklib:30.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:repository:30.0.1
> Could not find org.apache.httpcomponents:httpmime:4.5.6.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/apache/httpcomponents/httpmime/4.5.6/httpmime-4.5.6.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:sdklib:30.0.1
> Could not find org.apache.httpcomponents:httpcore:4.4.10.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/apache/httpcomponents/httpcore/4.4.10/httpcore-4.4.10.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:sdklib:30.0.1
> Could not find commons-codec:commons-codec:1.10.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/commons-codec/commons-codec/1.10/commons-codec-1.10.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.build:builder:7.0.1
> Could not find org.ow2.asm:asm:7.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/ow2/asm/asm/7.0/asm-7.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.build:builder:7.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.lint:lint:30.0.1 > com.android.tools.lint:lint-api:30.0.1
> Could not find org.ow2.asm:asm-tree:7.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/ow2/asm/asm-tree/7.0/asm-tree-7.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.build:builder:7.0.1
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.lint:lint:30.0.1 > com.android.tools.lint:lint-api:30.0.1
> Could not find org.ow2.asm:asm-commons:7.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/ow2/asm/asm-commons/7.0/asm-commons-7.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.build:builder:7.0.1
> Could not find org.ow2.asm:asm-util:7.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/ow2/asm/asm-util/7.0/asm-util-7.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.build:builder:7.0.1
> Could not find it.unimi.dsi:fastutil:8.4.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/it/unimi/dsi/fastutil/8.4.0/fastutil-8.4.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.build:builder:7.0.1
> Could not find net.sf.jopt-simple:jopt-simple:4.9.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/net/sf/jopt-simple/jopt-simple/4.9/jopt-simple-4.9.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.build:builder:7.0.1
> Could not find com.googlecode.json-simple:json-simple:1.1.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/googlecode/json-simple/json-simple/1.1/json-simple-1.1.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.build:builder:7.0.1
> Could not find com.squareup:javawriter:2.5.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/squareup/javawriter/2.5.0/javawriter-2.5.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.build:builder:7.0.1
> Could not find com.sun.activation:javax.activation:1.2.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/sun/activation/javax.activation/1.2.0/javax.activation-1.2.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:repository:30.0.1
> Could not find com.google.jimfs:jimfs:1.1.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/jimfs/jimfs/1.1/jimfs-1.1.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:repository:30.0.1
> Could not find org.jetbrains:annotations:13.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/jetbrains/annotations/13.0/annotations-13.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:sdk-common:30.0.1 > com.android.tools.layoutlib:layoutlib-api:30.0.1
> Could not find net.java.dev.jna:jna-platform:5.6.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/net/java/dev/jna/jna-platform/5.6.0/jna-platform-5.6.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools:sdk-common:30.0.1 > com.android.tools.analytics-library:shared:30.0.1
> Could not find com.google.code.findbugs:jsr305:1.3.9.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.build:builder:7.0.1 > com.android.tools.build:apkzlib:7.0.1
> Could not find com.google.guava:guava:30.1-jre.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/guava/guava/30.1-jre/guava-30.1-jre.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.build:builder:7.0.1 > com.android.tools.build:apkzlib:7.0.1
> Could not find commons-io:commons-io:2.4.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/commons-io/commons-io/2.4/commons-io-2.4.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.lint:lint:30.0.1 > com.android.tools.lint:lint-api:30.0.1
> Could not find org.ow2.asm:asm-analysis:7.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/ow2/asm/asm-analysis/7.0/asm-analysis-7.0.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :app > com.android.tools.lint:lint-gradle:30.0.1 > com.android.tools.lint:lint:30.0.1 > com.android.tools.lint:lint-checks:30.0.1
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
I added mavenCentral to the allProjects repository and it worked.
I have clean installed the latest version on IntelliJ and Gradle, ensuring Gradle is correctly set up in my Windows environment (I can run Gradle and build my project successfully through the command line in Windows and IntelliJ).
My issue arrises when I try to get IntelliJ to update the project when I make changes to my build.gradle file (see below). I get the following error and I cannot figure out what's gone wrong. This is a fresh project and fresh install of everything.
Error:
FAILURE: Build failed with an exception.
* Where:
Initialization script 'C:\Users\Kris\AppData\Local\Temp\ijinit.gradle' line: 41
* What went wrong:
A problem occurred evaluating initialization script.
> org/gradle/internal/impldep/com/google/common/collect/Lists
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
org.gradle.api.GradleScriptException: A problem occurred evaluating initialization script.
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:93)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl$2.run(DefaultScriptPluginFactory.java:237)
at org.gradle.configuration.DefaultScriptTarget.addConfiguration(DefaultScriptTarget.java:74)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:242)
at org.gradle.configuration.BuildOperationScriptPlugin$1$1.run(BuildOperationScriptPlugin.java:69)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
...
Caused by: java.lang.NoClassDefFoundError: org/gradle/internal/impldep/com/google/common/collect/Lists
at org.jetbrains.plugins.gradle.tooling.internal.ExtraModelBuilder.<init>(ExtraModelBuilder.java:55)
at org.jetbrains.plugins.gradle.tooling.internal.ExtraModelBuilder.<init>(ExtraModelBuilder.java:49)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
...
* Get more help at https://help.gradle.org
BUILD FAILED in 104ms
build.gradle:
plugins {
id 'java'
id 'application'
}
sourceCompatibility = 1.8
mainClassName = 'Main'
group 'com.ritcat.cinder'
version '1.0'
jar {
manifest {
attributes 'Main-Class': mainClassName
}
}
repositories {
flatDir {
dirs 'libs'
}
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile fileTree(include: ['*.jar'], dir: 'libs')
}
FAILURE: Build failed with an exception.
What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
Could not find com.github.parse-community.Parse-SDK-Android:parse:1.12.0.
Required by:
project :app
logcat
I have this problem, how can I fix these errors?
- Error:Unable to resolve dependency for ':app#playDebug/compileClasspath': Could not resolve project :pray-times.
Unable to resolve dependency for ':app#playDebug/compileClasspath': Could not resolve project :pray-times.
Could not resolve project :pray-times.
Required by:
project :app
> Unable to find a matching configuration of project :pray-times: None of the consumable configurations have attributes
- Error:Unable to resolve dependency for ':app#playDebugAndroidTest/compileClasspath': Could not resolve project :pray-times.
Unable to resolve dependency for ':app#playDebugAndroidTest/compileClasspath': Could not resolve project :pray-times.
Could not resolve project :pray-times.
Required by:
project :app
> Unable to find a matching configuration of project :pray-times: None of the consumable configurations have attributes
- Error:Unable to resolve dependency for ':app#playDebugUnitTest/compileClasspath': Could not resolve project :pray-times.
Unable to resolve dependency for ':app#playDebugUnitTest/compileClasspath': Could not resolve project :pray-times.
Could not resolve project :pray-times.
Required by:
project :app
> Unable to find a matching configuration of project :pray-times: None of the consumable configurations have attributes.
- Error:Unable to resolve dependency for ':app#playRelease/compileClasspath': Could not resolve project :pray-times.
Unable to resolve dependency for ':app#playRelease/compileClasspath': Could not resolve project :pray-times.
Could not resolve project :pray-times.
Required by:
project :app
> Unable to find a matching configuration of project :pray-times: None of the consumable configurations have attributes.
- Error:Unable to resolve dependency for ':app#playReleaseUnitTest/compileClasspath': Could not resolve project :pray-times.
Unable to resolve dependency for ':app#playReleaseUnitTest/compileClasspath': Could not resolve project :pray-times.
Could not resolve project :pray-times.
Required by:
project :app
> Unable to find a matching configuration of project :pray-times: None of the consumable configurations have attributes.
- Error:Unable to resolve dependency for ':app#fdroidDebug/compileClasspath': Could not resolve project :pray-times.
Unable to resolve dependency for ':app#fdroidDebug/compileClasspath': Could not resolve project :pray-times.
Could not resolve project :pray-times.
Required by:
project :app
> Unable to find a matching configuration of project :pray-times: None of the consumable configurations have attributes.
- Error:Unable to resolve dependency for ':app#fdroidDebug/compileClasspath': Could not resolve project :pray-times.
Unable to resolve dependency for ':app#fdroidDebugAndroidTest/compileClasspath': Could not resolve project :pray-times.
Could not resolve project :pray-times.
Required by:
project :app
> Unable to find a matching configuration of project :pray-times: None of the consumable configurations have attributes.
- Error:Unable to resolve dependency for ':app#fdroidDebugAndroidTest/compileClasspath': Could not resolve project :pray-times.
Unable to resolve dependency for ':app#fdroidDebugUnitTest/compileClasspath': Could not resolve project :pray-times.
Could not resolve project :pray-times.
Required by:
project :app
> Unable to find a matching configuration of project :pray-times: None of the consumable configurations have attributes.
- Error:Unable to resolve dependency for ':app#fdroidRelease/compileClasspath': Could not resolve project :pray-times.
Unable to resolve dependency for ':app#fdroidRelease/compileClasspath': Could not resolve project :pray-times.
Could not resolve project :pray-times.
Required by:
project :app
> Unable to find a matching configuration of project :pray-times: None of the consumable configurations have attributes.
- Error:Unable to resolve dependency for ':app#fdroidReleaseUnitTest/compileClasspath': Could not resolve project :pray-times.
Unable to resolve dependency for ':app#fdroidReleaseUnitTest/compileClasspath': Could not resolve project :pray-times.
Could not resolve project :pray-times.
Required by:
project :app
> Unable to find a matching configuration of project :pray-times: None of the consumable configurations have attributes.
This is my build.gradle
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
//noinspection GradleDynamicVersion
classpath 'io.fabric.tools:gradle:+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
android {
sourceSets {
main.assets.srcDirs += ['../changelogs']
}
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude '.readme'
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
compileSdkVersion 26
buildToolsVersion '26.0.2'
defaultConfig {
applicationId "com.metinkale.prayer"
minSdkVersion 15
targetSdkVersion 26
versionCode 191
versionName '3.6.6'
multiDexEnabled false
vectorDrawables.useSupportLibrary = true
}
dexOptions {
javaMaxHeapSize "2g"
preDexLibraries = false
}
buildTypes {
debug {
debuggable true
minifyEnabled false
zipAlignEnabled false
}
release {
debuggable false
minifyEnabled true
zipAlignEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
flavorDimensions "store"
productFlavors {
fdroid {
versionName = android.defaultConfig.versionName + " F-Droid"
dimension "store"
}
play {
versionName = android.defaultConfig.versionName + " Play Store"
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dimension "store"
}
}
compileOptions {
targetCompatibility JavaVersion.VERSION_1_7
sourceCompatibility JavaVersion.VERSION_1_7
}
testOptions {
unitTests.returnDefaultValues = true
}
}
Everything is up to date.
dependencies {
playCompile('com.crashlytics.sdk.android:crashlytics:2.6.8#aar') {
transitive = true
}
//excludeInFDroid
fdroidCompile('com.mapbox.mapboxsdk:mapbox-android-sdk:4.1.1#aar') {
transitive = true
}
compile('com.mikepenz:aboutlibraries:5.8.5#aar') {
transitive = true
}
This application is addressed to Muslims.
compile project(':pray-times')
compile 'joda-time:joda-time:2.9.6:no-tzdb'
compile 'com.google.code.gson:gson:2.8.2'
compile 'com.android.support:percent:26.1.0'
compile 'com.android.support:recyclerview-v7:26.1.0'
compile 'com.android.support:appcompat-v7:26.1.0'
compile 'com.android.support:customtabs:26.1.0'
compile 'com.android.support:design:26.1.0'
compile 'com.android.support:cardview-v7:26.1.0'
compile 'com.android.support:preference-v14:26.1.0'
compile 'com.koushikdutta.ion:ion:2.1.9'
compile 'net.steamcrafted:materialiconlib:1.1.4'
compile 'com.evernote:android-job:1.1.11'
compile 'com.github.anrwatchdog:anrwatchdog:1.3.0'
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5'
playCompile 'com.google.android.gms:play-services-maps:11.8.0'
playCompile 'com.google.android.gms:play-services-gcm:11.8.0'
playCompile 'com.google.android.gms:play-services-location:11.8.0'
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'us.feras.mdv:markdownview:1.1.0'
}
I think the problem comes from here
This is "classpath":
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
I updated to the latest version.
Building a model with gradle in eclipse 4.4.1 (luna) gives me an error:
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring root project '10-VideoServiceWithMongoDB'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve org.springframework.boot:spring-boot-gradle-plugin:1.0.2.RELEASE.
Required by:
:10-VideoServiceWithMongoDB:unspecified
> org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 3.454 secs
running it through a command line through jettyRun I can get more information
* Exception is:
org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration ':classpath'.
at org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration.rethrowFailure(DefaultLenientConfiguration.java:52)
at org.gradle.api.internal.artifacts.ivyservice.DefaultResolvedConfiguration.rethrowFailure(DefaultResolvedConfiguration.java:36)
at org.gradle.api.internal.artifacts.ivyservice.SelfResolvingDependencyResolver$FilesAggregatingResolvedConfiguration.rethrowFailure(SelfResolvingDependencyResolver.java:104)
at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingArtifactDependencyResolver$ErrorHandlingResolvedConfiguration.rethrowFailure(ErrorHandlingArtifactDependencyResolver.java:72)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:461)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.getFiles(DefaultConfiguration.java:202)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration_Decorated.getFiles(Unknown Source)
at org.gradle.api.internal.initialization.DefaultScriptHandler.updateClassPath(DefaultScriptHandler.java:36)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:118)
at org.gradle.configuration.BuildScriptProcessor.evaluate(BuildScriptProcessor.java:38)
at org.gradle.configuration.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:43)
at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:466)
at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:77)
at org.gradle.configuration.ProjectEvaluationConfigurer.execute(ProjectEvaluationConfigurer.java:23)
at org.gradle.configuration.ProjectEvaluationConfigurer.execute(ProjectEvaluationConfigurer.java:21)
at org.gradle.api.internal.Actions$CompositeAction.execute(Actions.java:78)
at org.gradle.api.internal.Actions$TransformingActionAdapter.execute(Actions.java:130)
at org.gradle.api.internal.project.AbstractProject.configure(AbstractProject.java:442)
at org.gradle.api.internal.project.AbstractProject.allprojects(AbstractProject.java:437)
at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:40)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:142)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:113)
at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:81)
at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:38)
at org.gradle.launcher.exec.InProcessGradleLauncherActionExecuter.execute(InProcessGradleLauncherActionExecuter.java:39)
at org.gradle.launcher.exec.InProcessGradleLauncherActionExecuter.execute(InProcessGradleLauncherActionExecuter.java:25)
at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:50)
at org.gradle.api.internal.Actions$RunnableActionAdapter.execute(Actions.java:171)
at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:201)
at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:174)
at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:170)
at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:139)
at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
at org.gradle.launcher.Main.doAction(Main.java:48)
at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
at org.gradle.launcher.Main.main(Main.java:39)
at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:50)
at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:32)
at org.gradle.launcher.GradleMain.main(GradleMain.java:26)
Caused by: org.gradle.api.internal.artifacts.ivyservice.ModuleVersionResolveException: Could not resolve org.springframework.boot:spring-boot-gradle-plugin:1.0.2.RELEASE.
Required by:
:10-VideoServiceWithMongoDB:unspecified
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.UserResolverChain.resolve(UserResolverChain.java:65)
at org.gradle.api.internal.artifacts.ivyservice.clientmodule.ClientModuleResolver.resolve(ClientModuleResolver.java:36)
at org.gradle.api.internal.artifacts.ivyservice.projectmodule.ProjectDependencyResolver.resolve(ProjectDependencyResolver.java:45)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.LazyDependencyToModuleResolver$StaticVersionResolveResult.resolve(LazyDependencyToModuleResolver.java:91)
at org.gradle.api.internal.artifacts.ivyservice.resolveengine.DependencyGraphBuilder$ModuleVersionSelectorResolveState.resolve(DependencyGraphBuilder.java:939)
at org.gradle.api.internal.artifacts.ivyservice.resolveengine.DependencyGraphBuilder$DefaultModuleRevisionResolveState.getDescriptor(DependencyGraphBuilder.java:645)
at org.gradle.api.internal.artifacts.ivyservice.resolveengine.DependencyGraphBuilder$DependencyEdge.calculateTargetConfigurations(DependencyGraphBuilder.java:329)
at org.gradle.api.internal.artifacts.ivyservice.resolveengine.DependencyGraphBuilder$DependencyEdge.attachToTargetConfigurations(DependencyGraphBuilder.java:305)
at org.gradle.api.internal.artifacts.ivyservice.resolveengine.DependencyGraphBuilder.traverseGraph(DependencyGraphBuilder.java:128)
at org.gradle.api.internal.artifacts.ivyservice.resolveengine.DependencyGraphBuilder.resolve(DependencyGraphBuilder.java:64)
at org.gradle.api.internal.artifacts.ivyservice.resolveengine.DefaultDependencyResolver.resolve(DefaultDependencyResolver.java:69)
at org.gradle.api.internal.artifacts.ivyservice.CacheLockingArtifactDependencyResolver$1.create(CacheLockingArtifactDependencyResolver.java:36)
at org.gradle.api.internal.artifacts.ivyservice.CacheLockingArtifactDependencyResolver$1.create(CacheLockingArtifactDependencyResolver.java:34)
at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:124)
at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(DefaultPersistentDirectoryStore.java:130)
at org.gradle.api.internal.artifacts.ivyservice.DefaultCacheLockingManager.useCache(DefaultCacheLockingManager.java:53)
at org.gradle.api.internal.artifacts.ivyservice.CacheLockingArtifactDependencyResolver.resolve(CacheLockingArtifactDependencyResolver.java:34)
at org.gradle.api.internal.artifacts.ivyservice.SelfResolvingDependencyResolver.resolve(SelfResolvingDependencyResolver.java:39)
at org.gradle.api.internal.artifacts.ivyservice.ShortcircuitEmptyConfigsArtifactDependencyResolver.resolve(ShortcircuitEmptyConfigsArtifactDependencyResolver.java:44)
at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingArtifactDependencyResolver.resolve(ErrorHandlingArtifactDependencyResolver.java:37)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.resolveNow(DefaultConfiguration.java:240)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.getResolvedConfiguration(DefaultConfiguration.java:230)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration_Decorated.getResolvedConfiguration(Unknown Source)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:459)
... 35 more
Caused by: java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
at org.apache.commons.logging.impl.SLF4JLocationAwareLog.debug(SLF4JLocationAwareLog.java:133)
at org.apache.http.client.protocol.RequestAuthCache.process(RequestAuthCache.java:75)
at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:131)
at org.apache.http.protocol.HttpRequestExecutor.preProcess(HttpRequestExecutor.java:165)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:485)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
at org.apache.http.impl.client.DecompressingHttpClient.execute(DecompressingHttpClient.java:158)
at org.apache.http.impl.client.DecompressingHttpClient.execute(DecompressingHttpClient.java:139)
at org.gradle.api.internal.externalresource.transport.http.HttpClientHelper.performHttpRequest(HttpClientHelper.java:111)
at org.gradle.api.internal.externalresource.transport.http.HttpClientHelper.executeGetOrHead(HttpClientHelper.java:87)
at org.gradle.api.internal.externalresource.transport.http.HttpClientHelper.performRequest(HttpClientHelper.java:78)
at org.gradle.api.internal.externalresource.transport.http.HttpClientHelper.performRawGet(HttpClientHelper.java:66)
at org.gradle.api.internal.externalresource.transport.http.HttpClientHelper.performGet(HttpClientHelper.java:70)
at org.gradle.api.internal.externalresource.transport.http.HttpResourceAccessor.getResource(HttpResourceAccessor.java:46)
at org.gradle.api.internal.externalresource.transport.http.HttpResourceAccessor.getResource(HttpResourceAccessor.java:32)
at org.gradle.api.internal.externalresource.transfer.ProgressLoggingExternalResourceAccessor.getResource(ProgressLoggingExternalResourceAccessor.java:37)
at org.gradle.api.internal.externalresource.transfer.DefaultCacheAwareExternalResourceAccessor.getResource(DefaultCacheAwareExternalResourceAccessor.java:54)
at org.gradle.api.internal.externalresource.transport.DefaultExternalResourceRepository.getResource(DefaultExternalResourceRepository.java:65)
at org.gradle.api.internal.artifacts.repositories.resolver.ExternalResourceResolver.getResource(ExternalResourceResolver.java:572)
at org.gradle.api.internal.artifacts.repositories.resolver.ExternalResourceResolver.findStaticResourceUsingPattern(ExternalResourceResolver.java:455)
at org.gradle.api.internal.artifacts.repositories.resolver.ExternalResourceResolver.findResourceUsingPattern(ExternalResourceResolver.java:446)
at org.gradle.api.internal.artifacts.repositories.resolver.ExternalResourceResolver.findResourceUsingPatterns(ExternalResourceResolver.java:368)
at org.gradle.api.internal.artifacts.repositories.resolver.MavenResolver.findIvyFileRef(MavenResolver.java:166)
at org.gradle.api.internal.artifacts.repositories.resolver.ExternalResourceResolver.getDependency(ExternalResourceResolver.java:156)
at org.gradle.api.internal.artifacts.repositories.resolver.MavenResolver.getDependency(MavenResolver.java:76)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.ExternalResourceResolverAdapter.getDependency(ExternalResourceResolverAdapter.java:35)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CacheLockingModuleVersionRepository$1.run(CacheLockingModuleVersionRepository.java:50)
at org.gradle.internal.Factories$1.create(Factories.java:22)
at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAccess.java:179)
at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAccess.java:232)
at org.gradle.cache.internal.DefaultPersistentDirectoryStore.longRunningOperation(DefaultPersistentDirectoryStore.java:142)
at org.gradle.api.internal.artifacts.ivyservice.DefaultCacheLockingManager.longRunningOperation(DefaultCacheLockingManager.java:49)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CacheLockingModuleVersionRepository.getDependency(CacheLockingModuleVersionRepository.java:48)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleVersionRepository.getDependency(CachingModuleVersionRepository.java:88)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.IvyContextualiser$1.invoke(IvyContextualiser.java:44)
at com.sun.proxy.$Proxy19.getDependency(Unknown Source)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.UserResolverChain$RepositoryResolveState.resolve(UserResolverChain.java:185)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.UserResolverChain.findLatestModule(UserResolverChain.java:97)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.UserResolverChain.findLatestModule(UserResolverChain.java:80)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.UserResolverChain.resolve(UserResolverChain.java:54)
I have read [this][1] but after adding the extra lines in my .ini file for eclipse, nothing changed. I have tried changing my java version from 1.8 to 1.6openJDK. I am on Ubuntu 14.
edit
here's the build file
uildscript {
ext {
springBootVersion = '1.0.2.RELEASE'
}
repositories {
maven { url "http://repo.spring.io/libs-snapshot" }
mavenLocal()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.0.2.RELEASE")
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'spring-boot'
apply plugin: 'war'
sourceCompatibility = 1.7
targetCompatibility = 1.7
war {
baseName = 'videosvc-mongodb'
version = '0.1.0'
}
repositories {
mavenCentral()
maven { url "http://repo.spring.io/libs-snapshot" }
maven { url "http://maven.springframework.org/milestone" }
}
dependencies {
compile("org.springframework.boot:spring-boot-starter-web") {
exclude module: "spring-boot-starter-tomcat"
}
providedRuntime("org.springframework.boot:spring-boot-starter-jetty")
compile("org.springframework.boot:spring-boot-starter-actuator")
compile("org.springframework.boot:spring-boot-starter-aop")
compile("org.springframework.boot:spring-boot-starter-test")
compile("org.springframework.data:spring-data-rest-webmvc")
compile("org.springframework.boot:spring-boot-starter-data-mongodb")
compile("com.google.guava:guava:17.0")
compile("com.squareup.retrofit:retrofit:1.6.0")
compile("commons-io:commons-io:2.4")
testCompile("junit:junit")
}
task wrapper(type: Wrapper) {
gradleVersion = '1.11'
}
When I try to refresh the Gradle dependecy by running gradle -refresh--dependencies in the apps folder I get a new fun error:
FAILURE: Build failed with an exception.
* Where:
Build file '/home/jake/mobilecloud-14/examples/10-VideoServiceWithMongoDB/build.gradle' line: 17
* What went wrong:
A problem occurred evaluating root project '10-VideoServiceWithMongoDB'.
> org.gradle.api.tasks.TaskContainer.create(Ljava/lang/String;Ljava/lang/Class;)Lorg/gradle/api/Task;
[1]: http://stackoverflow.com/questions/26085045/error-at-building-model-of-new-gradle-project-for-libgdx
Okay, so apparently Gradle didn't like my java build. I switched it to java-7-oracle by using this method