Open roc0723 opened 1 year ago
版本:fisco-bcos 2.8.0 web3sdk 2.6.1 gradle 6.0.1
根据文档想导入web3.sdk的时候 repositories { mavenLocal() mavenCentral() maven { url "http://maven.aliyun.com/nexus/content/groups/public/"} maven { url "https://oss.sonatype.org/content/repositories/snapshots" } maven { url "https://dl.bintray.com/ethereum/maven/" } maven { url "https://oss.sonatype.org/service/local/staging/deploy/maven2"} }
repositories { mavenLocal() mavenCentral() maven { url "http://maven.aliyun.com/nexus/content/groups/public/"} maven { url "https://oss.sonatype.org/content/repositories/snapshots" } maven { url "https://dl.bintray.com/ethereum/maven/" } maven { url "https://oss.sonatype.org/service/local/staging/deploy/maven2"} }
`dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.slf4j:slf4j-api:1.7.5' compileOnly 'org.projectlombok:lombok' annotationProcessor 'org.projectlombok:lombok' testImplementation('org.springframework.boot:spring-boot-starter-test') { exclude group: 'org.junit.vintage', module: 'junit-vintage-engine' } compile ('org.fisco-bcos.java-sdk:fisco-bcos-java-sdk:2.8.0') { exclude group: 'org.slf4j' } compile ('org.fisco-bcos:web3sdk:2.6.1')
} `
报错情况 `* What went wrong: Execution failed for task ':compileJava'.
Could not resolve all files for configuration ':compileClasspath'. Could not resolve org.ethereum:solcJ-all:0.4.25. Required by: project : > org.fisco-bcos:web3sdk:2.6.1 Could not resolve org.ethereum:solcJ-all:0.4.25. Could not get resource 'https://oss.sonatype.org/service/local/staging/deploy/maven2/org/ethereum/solcJ-all/0.4.25/solcJ-all-0.4.25.pom'. Could not GET 'https://oss.sonatype.org/service/local/staging/deploy/maven2/org/ethereum/solcJ-all/0.4.25/solcJ-all-0.4.25.pom'. Received status code 401 from server: Unauthorized` 想请问怎么解决
版本:fisco-bcos 2.8.0 web3sdk 2.6.1 gradle 6.0.1
根据文档想导入web3.sdk的时候
repositories { mavenLocal() mavenCentral() maven { url "http://maven.aliyun.com/nexus/content/groups/public/"} maven { url "https://oss.sonatype.org/content/repositories/snapshots" } maven { url "https://dl.bintray.com/ethereum/maven/" } maven { url "https://oss.sonatype.org/service/local/staging/deploy/maven2"} }
`dependencies {
} `
报错情况 `* What went wrong: Execution failed for task ':compileJava'.