gradle initで作成した直後で何も触っていない状態なのにgradle buildが失敗します。
エラーコードでググったりしましたが原因が分かりませんでした。
コマンドプロンプトでの結果を添付します。
よろしくお願いいたします。
#####環境
Windows 10 64bit
Gradle 6.3
OpenJDK 1.8
cmd
1D:\Sources>mkdir VSC_Java_test3 2 3D:\Sources>cd VSC_Java_test3 4 5D:\Sources\VSC_Java_test3>gradle init 6 7Select type of project to generate: 8 1: basic 9 2: application 10 3: library 11 4: Gradle plugin 12Enter selection (default: basic) [1..4] 2 13 14Select implementation language: 15 1: C++ 16 2: Groovy 17 3: Java 18 4: Kotlin 19 5: Swift 20Enter selection (default: Java) [1..5] 3 21 22Select build script DSL: 23 1: Groovy 24 2: Kotlin 25Enter selection (default: Groovy) [1..2] 1 26 27Select test framework: 28 1: JUnit 4 29 2: TestNG 30 3: Spock 31 4: JUnit Jupiter 32Enter selection (default: JUnit 4) [1..4] 33 34Project name (default: VSC_Java_test3): 35Source package (default: VSC_Java_test3): 36 37> Task :init 38Get more help with your project: https://docs.gradle.org/6.3/userguide/tutorial_java_projects.html 39 40BUILD SUCCESSFUL in 33s 412 actionable tasks: 2 executed 42D:\Sources\VSC_Java_test3>gradle build 43> Task :compileJava FAILED 44 45FAILURE: Build failed with an exception. 46 47* What went wrong: 48Execution failed for task ':compileJava'. 49> Could not resolve all files for configuration ':compileClasspath'. 50 > Could not resolve com.google.guava:guava:28.2-jre. 51 Required by: 52 project : 53 > Could not resolve com.google.guava:guava:28.2-jre. 54 > Could not get resource 'https://jcenter.bintray.com/com/google/guava/guava/28.2-jre/guava-28.2-jre.pom'. 55 > Could not GET 'https://jcenter.bintray.com/com/google/guava/guava/28.2-jre/guava-28.2-jre.pom'. 56 > java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty 57 58* Try: 59Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. 60 61* Get more help at https://help.gradle.org 62 63BUILD FAILED in 1s 641 actionable task: 1 executed 65 66D:\Sources\VSC_Java_test3>javac -version 67javac 1.8.0_41 68 69D:\Sources\VSC_Java_test3>
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。