Android Studio doesn't open as root
terex@Terminator:/android-studio/bin$ sudo ./studio.sh ERROR: Cannot start Android Studio No JDK found. Please validate either STUDIO_JDK, JDK_HOME or JAVA_HOME environment variable points to valid JDK installation.
But opens when not using sudo.
terex@Terminator:/android-studio/bin$ ./studio.sh Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=350m; support was removed in 8.0 [ 85000] WARN - openapi.wm.impl.ToolWindowImpl - ToolWindow icons should be 13x13. Please fix jar:file:/android-studio/lib/resources.jar!/artwork/toolWindowProject_AS.png
I might have meshed up something during java installation.
Further more, AVD after starting shows android and doesn't show anything more (I left my laptop awake for whole night and until morning the avd won't get started but only show ANDROID).
Everything was fine with Windows.