osx - System.getenv() Not Pulling Any Env Vars in Android Studio? -
i'm using retrolambda in android project. set 2 env variables export in .bashrc, java7_home , java8_home point absolute paths of both java sdks, after source'd .bashrc again.
however, trying compile project gives me error. when print out results of system.getenv("java7_home"), null back. however, curiously, when run env , grep variables in terminal, see them there. strangely, not assigning path string jdks directly seems work. have attempted restart of both android studio , computer in case changes .bashrc didn't take effect, nothing has worked.
does have insight problem, or else try? i'm running mac os x it's worth.
Comments
Post a Comment