FAILURE: Build failed with an exception. * What went wrong: Could not determine java version from '11.0.19'. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. D:\mymod>gradle/wrapper/gradle-wrapper.properties 'gradle' 不是内部或外部命令,也不是可运行的程序 或批处理文件。
时间: 2024-03-19 22:42:06 浏览: 15
这似乎是一个构建错误,提示无法从Java版本 '11.0.19' 中确定Java版本。您可以尝试使用 --stacktrace 选项运行命令,以获取更多的错误信息和堆栈跟踪。此外,您可能需要检查您的Gradle配置并确保Gradle已正确安装。如果Gradle未正确安装,您可以尝试安装或重新安装Gradle,并确保在系统路径中设置了Gradle的正确位置。如果问题仍然存在,请提供更多的上下文信息,以便我更好地帮助您解决问题。
相关问题
Could not determine the dependencies of task ':Demo:compileDebugJavaWithJavac'. > Failed to find Build Tools revision 30.0.0
这个错误提示是因为在编译 Debug 版本的 Java 代码时,找不到 Build Tools 版本为 30.0.0 的依赖。解决方法是在项目的 build.gradle 文件中添加对应版本的 Build Tools 依赖,例如:
```
android {
buildToolsVersion "30.0.0"
// other configurations
}
```
Could not determine ref type of version: git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.
回答: 根据提供的引用信息,这个错误是在运行一个叫做“webui-user.bat”的文件时出现的。错误提示表明程序试图安装名为“open_clip”的包,但是安装失败了。具体的错误信息如下:Running command git clone –filter=blob:none –quiet https://github.com/mlfoundations/open_clip.git ‘C:\Users\Administrator\AppData\Local\Temp\pip-req-build-0bs_j2f1’ error: RPC failed; curl 18 HTTP/2 stream 3 was not closed cleanly before end of the underlying stream fatal: expected flush after ref listing error: subprocess-exited-with-error git clone –filter=blob:none –quiet https://github.com/mlfoundations/open_clip.git ‘C:\Users\Administrator\AppData\Local\Temp\pip-req-build-0bs_j2f1’ did not run successfully. exit code: 128 See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. [1]
同时,在引用中提到了一种可能的解决方法。您可以先输入 cd ~/.ssh 查询.ssh文件,如果找不到的话就直接创建一个,输入 mkdir ~/.ssh,然后设置账号和邮箱,输入git config --global user.name '账号名' 和 git config --global user.email '邮箱',接着输入 ssh-keygen -t rsa -C '邮箱' 生成公钥。提到了在执行git clone https://github.com/Stability-AI/stablediffusion.git命令时无法下载Stable-Diffusion-Stability-AI库的问题。这个错误是由于PyPI的问题导致的,可能与pip无关。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [【Stable Diffusion】安装过程中常见报错解决方法](https://blog.csdn.net/Bankcary/article/details/131237002)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [github报错:git@github.com: Permission denied (publickey).fatal: Could not read from remote repository](https://blog.csdn.net/waitle500/article/details/122960022)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]