Android Emulator

Hi there,

i work Android Studio and using Tumbleweed version.
but…
when i click on ‘run’ to run emulator, no change occures…

but in Fedora Emulator window runs.

Hi and welcome to the Forum :slight_smile:
When you say, as in run a project or run studio.sh?

If a project, what appears in the system messages window?

Also what desktop environment are you running in openSUSE and was it the same one in Fedora?

thanks for replying! :o
i click the play button of emulator in Android studio (studio.sh).
but when i click on ‘play’ of android emulator it doesn’t start.
a small window appears but hides quickly and no running.

i did it on Fedora without this problem.
my Desktop is GNOME.

Hi
So open a terminal and run studio.sh here and see what errors/warnings appear to see if can narrow it down.

  1. Did you install Angroid Studio from the openSUSE repos, or did you install from somewhere else?

  2. Is your target emulation an x86 Android image or ARM?

  3. Immediately after any kind of failure on openSUSE, you can view the system logs for possible relevant info. To view the last 100 entries, you can run the following

journalctl -n 100

You may find some old threads about Android Studio in the Applications forum, we don’t have many posts about it in the Virtualization forum.

TSU

please test it yourself. i downloaded and installed ‘Tumbleweed’ today.

thanks!
i did it.
the error is:
Process 2842 (qemu-system-i38) of user 1000 dumped core.

Hi
Excuse me? How do you expect me to duplicate your error? If you want help then you need to post what your seeing to offer any help.

Suffice to say I see an example application dialog box appear and the emulator start etc…

i ran ‘journal’ command.

the last output line is:

Process 2842 (qemu-system-i38) of user 1000 dumped core.

Decided to take a look at Android Studio and Android Emulator,
Last I used Android Studio years ago, it had been around for awhile but it was only “OK” to use.
Only Java was supported as the coding language, and of course supported Dalvik.
When you installed it, you first set up your foundation build environment by installing NDKs targeting various Android platforms based on specific device models.
Emulator images were downloaded and installed separately.

Today,
Things are very different and work better.
It appears that you don’t have to prepare your build environment first, you can code a project and then during the build will prompt to download needed dependencies as you go.
You don’t have to create Java objects, the sample code I used for a test project compiled C.

Regarding this thread,
I determined that you should not install virtualization separately, Android Studio will install its own versions of QEMU.
I also determined that although it might be possible to install Android Studio from some other source, it’s probably best installed from the private repo listed at
https://software.opensuse.org/package/android-studio?search_term=android+studio

The Android Studio install from openSUSE is actually only a shell installation script that goes out to Google’s servers and downloads the latest stable, so the openSUSE package probably won’t become outdated and will always install the latest.

So,
Troubleshooting your problem…

  1. Did you install your Android Studio using the package found in the above link?
  2. Do you have any other virtualization already installed (You probably should not)?
  3. What Virtual Device image did you try to deploy to? As suggested when you create virtual devices, you should at least at first deploy only to x86 images, and only <maybe> try to deploy to an ARM image later.

It’s my early, superficial impression that today Android Studio should work pretty well. It looks pretty slick and as I described earlier hopefully you shouldn’t have a problem deploying to an emulator.

But, if anyone really had a major emulator issue that couldn’t be resolved, you could do what I used to do… Download and deploy an x86 Android image in regular virtuualization (VBox, VMware, KVM, Xen, etc), then manually build an APK and push it to your running image. Not as “hands free” as the way Android Studio and Android Emulator are supposed to work together, but it’ll work.

TSU

Thanks master tsu2](https://forums.opensuse.org/member.php/2578-tsu2)! :smiley:
the problem solved!
because of a library.

execuse me…
why hasn’t opensuse tumb. /var/log/messages file in default installation?

Linux systems which run on the old SysVinit sub-system stored their logfiles in /var/log/messages.
Since most Linux systems now have replaced SysVinit and now run on systemd, practically <all> log messages (not just system logs) are stored in a database and you should now use a tool called “journalctl” to view logs you wish to see.

Centralizing all logs in a single database enhances the ability to correlate info from many different sources. In the old days, you as the human needed to know where logs were located and possibly how to correlate different log data.

Best ways to introduce yourself to journalctl,

  • Google articles written
  • Display help, eg
journalctl --help
  • The journalctl MAN pages, but it’s very, very big

You should also know that for any apps or services that are invoked using “systemctl” a small snippet of relevant log data is automatically displayed which can be very useful if you’re troubleshooting.

HTH,
TSU

thanks master TSU,

i have not knowledge about modern linuxes enough.
i read your replies carefully.
they are usefull!

execuse me, what is ‘bin’ folder under ‘home’ folder?

please say how can i use ‘patch -p1’ command?

i have an ask for a long time…
how can i update kernel from ‘patch’ and ‘incremental patch’ ?

i found a bug when installation: when i don’t wanna libreoffice and i deselect office and then install, but office installs.

You should provide more information about your patch, and even consider starting a new thread since patching the kernel is not really a virtualization topic (I’d recommend the Installation forum).

If the patch is being provided in the form of a package, you can use the openSUSE package management command zypper,

zypper patch 

If you need to re-compile the kernel, then the procedure is more complicated but before you do that you should ask advice about what you want to do and why it’s needed.

TSU