-
Notifications
You must be signed in to change notification settings - Fork 82
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
No compatible solc release could be found for the file: #68
Comments
Hi, could you give more context?
Thanks |
@xaviarias
|
I ran into a simillar problem. Go to |
It doesn't work, I'd like to use version 0.8.4 and I downloaded the version from this link: https://github.com/ethereum/solidity/releases/download/v0.8.4/solc-windows.exe and put that file to the directory C:\Users<User>.web3\solc\0.8.4 but still doesn't work with the same result. Do you have any idea? |
I ran into a simillar problem.After version 0.7.1, windows_url lacks the corresponding mapping, how can I solve it? |
encountering a similar issue, any update on this? |
You just have to mention in your solidity contract this line |
如果sol版本编译超过0.7.1,就会出现上述问题,原因是因为 web3j会先从本地 C:\Users<User>.web3j\solc\release.json 获取最新的windows可用url,在 maven web3j 4.9.4 版本中,引入了子依赖 web3j-sokt 0.2.1, 在源代码 https://github.com/web3j/web3j-sokt/blob/release/0.2.1/src/main/kotlin/org/web3j/sokt/VersionResolver.kt 中可用看到 从 https://internal.services.web3labs.com/api/solidity/versions/ 下载了 release.json 文件,但是文件中从 0.7.1 之后windows_url一直为 “”, 所以无法找到合适的编译版本solc。 在 web3j-sokt 0.2.2 中 https://github.com/web3j/web3j-sokt/blob/release/0.2.2/src/main/kotlin/org/web3j/sokt/VersionResolver.kt ,release.json 的下载地址变更为 https://raw.githubusercontent.com/web3j/web3j-sokt/master/src/main/resources/releases.json ,截至目前文件内的最新可用版本为 solidity 0.8.13 所以我认为解决方案应该是 maven 排除 web3j-sokt 0.2.1, 引入新的 web3j-sokt 0.2.2. |
<plugin>
<groupId>org.web3j</groupId>
<artifactId>web3j-maven-plugin</artifactId>
<version>4.9.4</version>
<dependencies>
<dependency>
<groupId>org.web3j</groupId>
<artifactId>web3j-sokt</artifactId>
<version>0.2.2</version>
</dependency>
</dependencies>
</plugin> |
我配置了 web3j-sokt 0.2.2. 但是不生效。请问有遇到这样的情况吗? |
已解决;
最后刷新依赖项目maven仓库,即可。 |
my solidity file:
pragma solidity ^0.8.0;
The text was updated successfully, but these errors were encountered: