I am working on Kali Linux and wanted to get started with Android development and Flutter but I am getting this error after installing Android Studio:
The use of Java options environment variables detected. Such variables override IDE configuration files (*.vmoptions) and may cause performance and stability issues. Please consider deleting these variables: _JAVA_OPTIONS.
What does this mean and what can I do about it?
This warning comes up because you have an environment variable called _JAVA_OPTIONS
setup by default. On Kali Linux, this variable typically carries default formatting/encoding for your Java installation.
printenv _JAVA_OPTIONS
.unset _JAVA_OPTIONS
.Once removed from your environment variables, Android Studio will no longer display the previous warning.
[Edit]: I noticed that after deleting the variable, Android Studio was now able to build projects that were previously failing to build.
NB: If you foresee a need for the variable elsewhere, you can copy it out and move it into your ~/.bashrc
or ~/.profile
(comment it with #
) for later use.