在对gradle init构建出来的gradle项目进行gradle classes时报错
Execution failed for task ':app:compileJava'.
Could not resolve all files for configuration ':app:compileClasspath'.
Could not resolve com.google.guava:guava:30.1-jre.
Required by:
project :app
Could not resolve com.google.guava:guava:30.1-jre.
Could not get resource 'https://maven.aliyun.com/repository/public/com/google/guava/guava/30.1-jre/guava-30.1-jre.pom'.
org.apache.http.ssl.SSLInitializationException: C:\Program Files\Java\jdk-13.0.1\lib\security\cacerts (系统找不 到指定的路径。)
Could not resolve com.google.guava:guava:30.1-jre.
Could not get resource 'https://nexus.bsdn.org/content/groups/public/com/google/guava/guava/30.1-jre/guava-30.1-jre.pom'.
org.apache.http.ssl.SSLInitializationException: C:\Program Files\Java\jdk-13.0.1\lib\security\cacerts (系统找不 到指定的路径。)
Could not resolve com.google.guava:guava:30.1-jre.
Could not get resource 'https://repo.maven.apache.org/maven2/com/google/guava/guava/30.1-jre/guava-30.1-jre.pom'.
org.apache.http.ssl.SSLInitializationException: C:\Program Files\Java\jdk-13.0.1\lib\security\cacerts (系统找不 到指定的路径。)
Could not resolve com.google.guava:guava:30.1-jre.
Could not get resource 'https://maven.aliyun.com/repository/public/com/google/guava/guava/30.1-jre/guava-30.1-jre.pom'.
org.apache.http.ssl.SSLInitializationException: C:\Program Files\Java\jdk-13.0.1\lib\security\cacerts (系统找不 到指定的路径。)
Could not resolve com.google.guava:guava:30.1-jre.
Could not get resource 'https://nexus.bsdn.org/content/groups/public/com/google/guava/guava/30.1-jre/guava-30.1-jre.pom'.
org.apache.http.ssl.SSLInitializationException: C:\Program Files\Java\jdk-13.0.1\lib\security\cacerts (系统找不 到指定的路径。)
Could not resolve com.google.guava:guava:30.1-jre.
build.gradle文件内容
/*
plugins {
// Apply the application plugin to add support for building a CLI application in Java.
id 'application'
}
repositories {
// Use Maven Central for resolving dependencies.
mavenLocal()
maven { name "Alibaba" ; url "https://maven.aliyun.com/repository/public" }
maven { name "Bstek" ; url "https://nexus.bsdn.org/content/groups/public/" }
mavenCentral()
}
dependencies {
// Use JUnit test framework.
testImplementation 'junit:junit:4.13.2'
// This dependency is used by the application.
implementation 'com.google.guava:guava:30.1-jre'
}
application {
// Define the main class for the application.
mainClass = 'com.atguigu.gradle.App'
}
settings.gradle文件内容
/*
plugins {
// Apply the application plugin to add support for building a CLI application in Java.
id 'application'
}
repositories {
// Use Maven Central for resolving dependencies.
mavenLocal()
maven { name "Alibaba" ; url "https://maven.aliyun.com/repository/public" }
maven { name "Bstek" ; url "https://nexus.bsdn.org/content/groups/public/" }
mavenCentral()
}
dependencies {
// Use JUnit test framework.
testImplementation 'junit:junit:4.13.2'
// This dependency is used by the application.
implementation 'com.google.guava:guava:30.1-jre'
}
application {
// Define the main class for the application.
mainClass = 'com.atguigu.gradle.App'
}
你把报错发给我看一下