简体   繁体   English

这个错误在运行我的代码时向我显示,“无法找到或加载主 class XX:MaxPermSize=1024m”是什么意思?

[英]this error shows to me when running my code, what the mean of “Could not find or load main class XX:MaxPermSize=1024m”?

Unable to start the daemon process.无法启动守护进程。 This problem might be caused by incorrect configuration of the daemon.此问题可能是由于守护程序配置不正确造成的。 For example, an unrecognized jvm option is used.例如,使用了无法识别的 jvm 选项。 Please refer to the User Manual chapter on the daemon at https://docs.gradle.org/6.5/userguide/gradle_daemon.html Process command line: C:\Program Files\Android\Android Studio\jre\bin\java.exe XX:MaxPermSize=1024m -XX:ReservedCodeCacheSize=1024m -Xms1024m -Xmx4096m -Dfile.encoding=windows-1252 -Duser.country=US -Duser.language=en -Duser.variant -cp C:\Users\DELL.gradle\wrapper\dists\gradle-6.5-bin\6nifqtx7604sqp1q6g8wikw7p\gradle-6.5\lib\gradle-launcher-6.5.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 6.5 Please read the following process output to find out more: Please refer to the User Manual chapter on the daemon at https://docs.gradle.org/6.5/userguide/gradle_daemon.html Process command line: C:\Program Files\Android\Android Studio\jre\bin\java.exe XX:MaxPermSize=1024m -XX:ReservedCodeCacheSize=1024m -Xms1024m -Xmx4096m -Dfile.encoding=windows-1252 -Duser.country=US -Duser.language=en -Duser.variant -cp C:\Users\DELL.gradle\ wrapper\dists\gradle-6.5-bin\6nifqtx7604sqp1q6g8wikw7p\gradle-6.5\lib\gradle-launcher-6.5.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 6.5 Please read the following process output to find out more:

Error: Could not find or load main class XX:MaxPermSize=1024m错误:无法找到或加载主 class XX:MaxPermSize=1024m


Check the JVM arguments defined for the gradle process in:检查为 gradle 过程定义的 JVM arguments:

  • gradle.properties in project root directory项目根目录中的 gradle.properties
  • gradle.properties in in GRADLE_USER_HOME directory GRADLE_USER_HOME 目录中的 gradle.properties

You need a "-" before the "XX".在“XX”之前需要一个“-”。 The command processor is assuming that the first argument that has no preceding "-" is the name of the class you want to execute.命令处理器假定前面没有“-”的第一个参数是您要执行的 class 的名称。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误:找不到或加载主 class - 在提示符下运行 JAR 时 - Error: Could not find or load main class - When running a JAR at the prompt 在包/文件夹中运行 Java 程序时,“代码运行器”扩展显示“找不到或加载主类”。 (VS代码) - 'Code Runner' extension shows "Could not find or load main class" when running Java programs inside a package/folder. (VScode) 遇到找不到或无法加载主类错误的情况,有人可以帮助我修复该错误吗? 我是Java新手 - Getting a could not find or load main class error, can anyone help me fix it? I'm new to java 错误:找不到或加载主类。 编译代码时会发生这种情况 - Error: Could not find or load main class . this occurs when compiling code java 启动选项“-Xmx512M -XX:MaxPerSize=1024M”不适用于我的 jvm - java startup option "-Xmx512M -XX:MaxPerSize=1024M" doesn't work for my jvm “找不到或加载主类”是什么意思? - “Could not find or load main class” What does this mean? “找不到或无法加载主类”是什么意思? - What does "Could not find or load main class" mean? 每当在 Intellij IDEA 中运行 java 文件时,都会显示错误“无法找到或加载主类” - Whenever running a java file in Intellij IDEA, it shows error that "Could not find or load main class" 错误:从Linux命令行运行时找不到或加载主类Main- - Error: Could not find or load main class Main - when running from Linux command line 运行时如何找到“无法找到或加载主类”错误的根源 JAR - How to find root of "Could not find or load main class" error when running JAR
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM