Git Product home page Git Product logo

Comments (7)

Ac-Accelerator avatar Ac-Accelerator commented on July 16, 2024 2

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.

Deadolus avatar Deadolus commented on July 16, 2024

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.

Lalarian avatar Lalarian commented on July 16, 2024

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.

Deadolus avatar Deadolus commented on July 16, 2024

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.

Lalarian avatar Lalarian commented on July 16, 2024

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.

ggalmeida0 avatar ggalmeida0 commented on July 16, 2024

Running into this same problem on my arch linux system. Did you find a solution by any chance?

from android-studio-docker.

guilhermelinhares avatar guilhermelinhares commented on July 16, 2024

Hi, try to run the command xhost +

from android-studio-docker.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.