I'm using retrolambda in an Android project. I set two env variables for export in my .bashrc, JAVA7_HOME and JAVA8_HOME that point to the absolute paths of both Java SDKs, after which I source'd .bashrc again.
However, trying to compile my project gives me an error. When I print out the results of System.getEnv("JAVA7_HOME"), I get null back. However, curiously, when I run env and grep for the variables in my terminal, I see them there. Most strangely, not even assigning the path as a string to the JDKs directly seems to work. I have attempted a restart of both Android Studio and my computer just in case my changes to .bashrc didn't take effect, but nothing has worked.
Does anyone have any insight as to the problem, or what else I could try? I'm running Mac OS X for what it's worth.