有时候.bashrc里定义export GRADLE_USER_HOME="/D/Android/.gradle"不生效,无法修改gradle默认文件位置,可以修改/E/Android-Studio/Android-Studio-Jellyfish/android-studio-2023.3.1.18-linux/android-studio/bin下的idea.properties文件。在文件末尾添加gradle.user.home=/D/Android/.gradle
。
#---------------------------------------------------------------------
# The VM option value to be used to start a JVM in debug mode.
# Some JREs define it in a different way (-XXdebug in Oracle VM)
#---------------------------------------------------------------------
idea.xdebug.key=-Xdebug
#-----------------------------------------------------------------------
# Change to 'enabled' if you want to receive instant visual notifications
# about fatal errors that happen to an IDE or plugins installed.
#-----------------------------------------------------------------------
idea.fatal.error.notification=disabled
gradle.user.home=/D/Android/.gradle
网友评论