我最近在Ubuntu上安装了Android Studio,我想改变gradle.properties
文件,但我找不到它。唯一的文件是gradle.properties.ftl
。我无法理解ftl
的含义。我应该将gradle.properties.ftl
的名称更改为gradle.properties
吗?
gradle.properties.ftl
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
<#if isLowMemory!false>
org.gradle.jvmargs=-Xmx1024m
<#else>
org.gradle.jvmargs=-Xmx1536m
</#if>
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
答案 0 :(得分:0)
该文件是Android Studio中的Freemarker模板文件。此文件用于在创建新的Android项目时由IDE自动创建真实的gradle.properties
文件。重命名它不会有任何好处,因为它不是有效的.properties
文件。
如果要更改属性,只需先创建一个空的gradle.properties
文件。