有時(shí)候.bashrc里定義export GRADLE_USER_HOME="/D/Android/.gradle"不生效,無法修改gradle默認(rèn)文件位置隅津,可以修改/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