[英]Could not set unknown property 'applicationDefaultJvmArgs' in Gradle
In file build.gradle of my Java project i add applicationDefaultJvmArgs
as bellow在我的 Java 项目的文件 build.gradle 中,我添加applicationDefaultJvmArgs
如下
applicationDefaultJvmArgs = ['-Xmx512m', '-XX:MaxPermSize=512m', '-Dinm.testmode=true', '-Dfile.encoding=UTF-8', '-Xdebug','-Xrunjdwp:transport=dt_socket,server=y,address=7979,suspend=n']
and i get error我得到错误
Could not set unknown property 'applicationDefaultJvmArgs' for root project
How can i fix it?我该如何解决?
applicationDefaultJvmArgs
is a property of the Application Plugin and must be defined in the application
configuration closure: applicationDefaultJvmArgs
是应用程序插件的一个属性,必须在application
配置闭包中定义:
plugins {
id 'application'
}
application {
applicationDefaultJvmArgs = ['-Xmx512m', '-XX:MaxPermSize=512m', '-Dinm.testmode=true', '-Dfile.encoding=UTF-8', '-Xdebug','-Xrunjdwp:transport=dt_socket,server=y,address=7979,suspend=n']
}
See the application plugin's Usage guide for more examples.有关更多示例,请参阅应用程序插件的使用指南。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.