Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Android Studio
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
scalder
n00b
n00b


Joined: 26 Sep 2020
Posts: 5

PostPosted: Tue Jan 04, 2022 9:33 pm    Post subject: [SOLVED] Android Studio Reply with quote

I am trying to port some C code of mine over to Android. I have installed android-studio, android-ndk. I have run the command `android` and installed the SDK files,
but when I try to run android studio the GUI never properly loads. My user account is a member of the KVM group and I have installed pulseaudio. Any ideas?
I am using Xorg with bspwm if that makes any difference.

https://files.catbox.moe/psqj2l.png
https://files.catbox.moe/9qyi5j.png


Last edited by scalder on Fri Jan 07, 2022 3:33 am; edited 1 time in total
Back to top
View user's profile Send private message
Banana
Veteran
Veteran


Joined: 21 May 2004
Posts: 1384
Location: Germany

PostPosted: Wed Jan 05, 2022 9:39 am    Post subject: Reply with quote

Hello scalder.

Did you follow this wiki install page: https://wiki.gentoo.org/wiki/Android_studio
There is no such command android.

The last time I've installed the studio I ran
Code:
emerge dev-util/android-studio -av
and that it was.
_________________
My personal space
My delta-labs.org snippets do expire

PFL - Portage file list - find which package a file or command belongs to.
Back to top
View user's profile Send private message
scalder
n00b
n00b


Joined: 26 Sep 2020
Posts: 5

PostPosted: Wed Jan 05, 2022 9:53 am    Post subject: Reply with quote

Hello Banana thanks for replying.
Yes I followed those instructions. For some reason I ended up installing dev-util/android-sdk-update-manager, that provides the `android` command. No idea what it's for or why I ended up installing it.
Back to top
View user's profile Send private message
Banana
Veteran
Veteran


Joined: 21 May 2004
Posts: 1384
Location: Germany

PostPosted: Wed Jan 05, 2022 4:37 pm    Post subject: Reply with quote

what happens if you uninstall and remove all the files for it in your home directory?
Code:
.android
Android
AndroidStudioProjects
.config/Android Open Source Project/
.local/share/Android Open Source Project/

_________________
My personal space
My delta-labs.org snippets do expire

PFL - Portage file list - find which package a file or command belongs to.
Back to top
View user's profile Send private message
scalder
n00b
n00b


Joined: 26 Sep 2020
Posts: 5

PostPosted: Thu Jan 06, 2022 12:33 am    Post subject: Reply with quote

That allows me to get a little farther.
I can try to create a new project, and specify it as a C++ project. After that the gui still fails to load.
Back to top
View user's profile Send private message
Banana
Veteran
Veteran


Joined: 21 May 2004
Posts: 1384
Location: Germany

PostPosted: Thu Jan 06, 2022 10:14 am    Post subject: Reply with quote

uhm, well I do not use c++ in android studio. So I can only asume that something with your project setup is wrong.
Maybe this can help? https://developer.android.com/studio/projects/add-native-code
_________________
My personal space
My delta-labs.org snippets do expire

PFL - Portage file list - find which package a file or command belongs to.
Back to top
View user's profile Send private message
WesleyL
n00b
n00b


Joined: 18 Oct 2021
Posts: 7
Location: São Paulo, Brazil

PostPosted: Thu Jan 06, 2022 11:29 am    Post subject: Reply with quote

I also face this issue on bspwm and setting the _JAVA_AWT_WM_NONREPARENTING variable to "1" solves it. https://wiki.archlinux.org/title/Bspwm#Problems_with_Java_applications
Back to top
View user's profile Send private message
scalder
n00b
n00b


Joined: 26 Sep 2020
Posts: 5

PostPosted: Fri Jan 07, 2022 3:34 am    Post subject: Reply with quote

Pequeno Sapo wrote:
I also face this issue on bspwm and setting the _JAVA_AWT_WM_NONREPARENTING variable to "1" solves it. https://wiki.archlinux.org/title/Bspwm#Problems_with_Java_applications

Thank you! This was my problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum