Comments (7)
After trying various methods to no avail, I found that the cause of the problem was due to my use of Docker Desktop, which uses kvm-qemu for virtualization, and therefore could not connect to the host's x11.This problem was solved when I used the default Docker Engine.
from android-studio-docker.
Hi @Lalarian,
if you want something to show please use
HOST_DISPLAY=1
as described in the "Run" section.
Hope this helps.
Happy coding,
Deadolus
from android-studio-docker.
Oops, sorry! Of course I was using "HOST_DISPLAY=1 ./run.sh".
I just switched the words in the first post.
from android-studio-docker.
Hmm, this makes the problem a bit more interesting.
The Android-Studio in the docker wants to connect to your ':0.0' display, but does not find it.
Is your display really on :0.0? Check the DISPLAY variable.
The Container also forwards your /tmp/.X11-unix - does this file exist on your system (it seems to me it should on xfce)?
Pleae also check the permission of this file.
from android-studio-docker.
Hello!
The .X11-unix folder does exists with onlye one file "X0" in it.
The X0 file has 777 permissions, but I can't open or read it:
[ladmin@elite/tmp/.X11-unix]ls -al /tmp/.X11-unix/X0
srwxrwxrwx 1 root root 0 20. Sep 11:12 /tmp/.X11-unix/X0
[ladmin@elite/tmp/.X11-unix]ls -al /tmp/.X11-unix/
insgesamt 0
drwxrwxrwt 2 root root 60 20. Sep 11:12 .
drwxrwxrwt 16 root root 500 21. Sep 11:14 ..
srwxrwxrwx 1 root root 0 20. Sep 11:12 X0
[ladmin@elite/tmp/.X11-unix]cat /tmp/.X11-unix/X0
cat: /tmp/.X11-unix/X0: Kein passendes Gerät bzw. keine passende Adresse gefunden
The DISPLAY variable is what we have gotten as response before:
[ladmin@elite/tmp/.X11-unix]echo $DISPLAY
:0.0
from android-studio-docker.
Running into this same problem on my arch linux system. Did you find a solution by any chance?
from android-studio-docker.
Hi, try to run the command xhost +
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
- can't connect to X11 (Ubuntu 22.04.3 LTS) HOT 8
- 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
- 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.