Comments (8)
Same error on Ubuntu 23.10
from android-studio-docker.
I tried xhost +
or adding in $HOME/.bash_profile
JAVA_OPTIONS=-Djava.awt.headless=true
export JAVA_OPTIONS
but same result.
from android-studio-docker.
The error tells you that you can't connect to the display server.
Usually, the server listens on :0, but this could also be some other variable.
What does your shell (not inside docker!) DISPLAY environment variable say?
from android-studio-docker.
That's what I thought which is why I shared
echo $DISPLAY
:0
isn't it matching?
from android-studio-docker.
Not sure if it makes a difference in that case but I run docker here as a user, not as root.
from android-studio-docker.
Not sure if it makes a difference in that case but I run docker here as a user, not as root.
That should not make a difference.
Make sure you are running x11, not wayland mabe?
Maybe some problem with your .xauthority file not allowing access to the x11 server?
Sorry can't help here, I am also no display server expert.
from android-studio-docker.
Seems so :
fabien@fabien-CORSAIR-ONE-i160:~$ echo $XDG_SESSION_TYPE
x11
No worries I'll investigate https://stackoverflow.com/questions/44429394/x11-forwarding-of-a-gui-app-running-in-docker and report here!
from android-studio-docker.
@Utopiah I assume you use wayland try running this in the terminal 'xhost + local:' works on gnome
@Deadolus maybe this can be added in the run.sh for wayland?
from android-studio-docker.
Related Issues (14)
- Build of Docker will fail since to be based on Ubuntu 17.04 instead of 17.10 HOT 3
- ERROR [12/29] RUN chown android:android /androidstudio-data HOT 4
- Sorry, total noob... HOT 5
- mapping volume for AndroidStudioProjects HOT 1
- I want to use this with VS Code Remote
- Issues with compose and run
- Unable to run commands HOT 1
- No sound on AVL HOT 1
- Graphics Environment issue for Mac Docker HOT 3
- Doesn't build. 17.04 repo's no longer exists? Upgrade patch attached HOT 3
- ava.awt.AWTError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. HOT 7
- Error running on an Intel Mac HOT 3
- when to test on Win 10/7 and mac? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-studio-docker.