Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于Web3SDK2.6.1用gradle导入报错401问题 #754

Open
roc0723 opened this issue Apr 17, 2023 · 0 comments
Open

关于Web3SDK2.6.1用gradle导入报错401问题 #754

roc0723 opened this issue Apr 17, 2023 · 0 comments

Comments

@roc0723
Copy link

roc0723 commented Apr 17, 2023

版本: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 {

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`
想请问怎么解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant