hi fedora people ,
just came back to fedora after sometimes using one of arch based distros.
i have just installed Fedora 29 Workstation .
i am trying to install android studio , i just followed the steps in this link
https://fedoraproject.org/wiki/Android_Studio
i installed OracleŽ Java Development Kit (JDK) 8 because 7 is not supported anymore.
but when downloading SDK package i get error like this
java.io.IOException: Cannot download , response: 200 OK Warning: An error occurred while preparing SDK package Android Support Repository: Cannot download , response: 200 OK. java.io.IOException: Cannot download
i found similar post on this error on windows
https://stackoverflow.com/questions/...ad-sdk-package
it says you have to run sh studio.sh as a privileged user , when i try to use sudo sh studio.sh i get the following :
No protocol specified

Start Failed: Failed to initialize graphics environment

java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$200(X11Graph icsEnvironment.java:65)
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEn vironment.java:115)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11Graphic sEnvironment.java:74)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at java.awt.GraphicsEnvironment.createGE(GraphicsEnvi ronment.java:103)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvir onment(GraphicsEnvironment.java:82)
at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:128)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at java.awt.Toolkit$2.run(Toolkit.java:860)
at java.awt.Toolkit$2.run(Toolkit.java:855)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:85 4)
at com.intellij.ui.AppUIUtil.updateFrameClass(AppUIUt il.java:155)
at com.intellij.idea.StartupUtil.prepareAndStart(Star tupUtil.java:100)
at com.intellij.idea.MainImpl.start(MainImpl.java:20)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.ide.plugins.PluginManager.lambda$star t$0(PluginManager.java:76)
at java.lang.Thread.run(Thread.java:745)


any ideas??