Last active
August 29, 2015 14:10
-
-
Save yusuiked/be72a76a89dd087b8d5c to your computer and use it in GitHub Desktop.
Gradle で NoClassDefFoundError でビルドできない時 ref: http://qiita.com/yukung/items/fb3f2592a9f01003229c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./gradlew tasks --debug | |
(省略) | |
15:49:07.706 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception. | |
15:49:07.707 [ERROR] [org.gradle.BuildExceptionReporter] | |
15:49:07.707 [ERROR] [org.gradle.BuildExceptionReporter] * Where: | |
15:49:07.707 [ERROR] [org.gradle.BuildExceptionReporter] Build file '~/src/github.com/yukung/some-project/build.gradle' line: 167 | |
15:49:07.707 [ERROR] [org.gradle.BuildExceptionReporter] | |
15:49:07.708 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong: | |
15:49:07.708 [ERROR] [org.gradle.BuildExceptionReporter] A problem occurred evaluating root project 'some-project'. | |
15:49:07.708 [ERROR] [org.gradle.BuildExceptionReporter] > [Ljava/util/HashMap$Entry; | |
15:49:07.709 [ERROR] [org.gradle.BuildExceptionReporter] | |
15:49:07.709 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is: | |
15:49:07.724 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.GradleScriptException: A problem occurred evaluating root project | |
(省略) | |
15:49:07.742 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.lang.NoClassDefFoundError: [Ljava/util/HashMap$Entry; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./gradlew --version | |
------------------------------------------------------------ | |
Gradle 1.12 | |
------------------------------------------------------------ | |
Build time: 2014-04-29 09:24:31 UTC | |
Build number: none | |
Revision: a831fa866d46cbee94e61a09af15f9dd95987421 | |
Groovy: 1.8.6 | |
Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013 | |
Ivy: 2.2.0 | |
JVM: 1.8.0_20 (Oracle Corporation 25.20-b23) # <-- コレがおかしい | |
OS: Mac OS X 10.9.5 x86_64 | |
$ java -version | |
java version "1.8.0_20" | |
Java(TM) SE Runtime Environment (build 1.8.0_20-b26) | |
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export JAVA_HOME=$(/usr/libexec/java_home -v 1.8) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment