+ 1
Android studio emulator
Hello. I'm currently programming an app in Android Studio. For preview, I'm using the emulator within Android Studio itself. Shortly after running the app, the emulator always closes, and I have to run the app again until the emulator closes again. Does anyone know what might be causing this and what I can do about it? Thanks in advance
16 Answers
+ 5
I had a problem with hedgehog or iguana codenamed version. try to switch to another, even if it is unstable. at me the unstable worked, but the stable crashed
+ 3
Which emulator are you using? Perhaps another device might work in a stabler manner.
My other recommendation is to always check the Android Studio FAQs, they have lots of info.
+ 3
Sweet! You got it solved!
+ 2
The problem was the android version. I used android 13. After creating a pixel 8 with android 14 everything works fine.
+ 1
You could try a hello world program to see if the emulator works.
+ 1
There is a problem somewhere in
1a. your code
1b. The installed emulator
My first step in finding out which is to use a real android device and observe the same issue
2a. if the issue does not persist - its definitely 1b
2b. If the issue persist - it is 1a and this can be challenging depending on what the error is. From experience, i can predict this is from a container (array, list) etc otherwise just write unit test for the app and continue your findings
it a good practise to always test the source code btw
+ 1
There is a hello world program by default. Even with or without the button (also by default Hello world program) the emulator crashes. I think my code isn't the problem because when I just add a button without any code the emulator also crashes. I think the emulator is the problem. I'll try another one and then report here if this was the solution.
+ 1
Thanks.
+ 1
Michael Cilphillis It isn't available in the play store for android just for windows, Mac os and Linux
0
I use the pixel 8 as the emulator. I'll try another one
0
Consider these methods:
1.Increase of emulator ram
2.Check requirements
3.Update the app
4.check errors.
0
Thanks but it already works. Where do I increase the emulator ram?
0
I tried downloading Android Studio, but it's not available on my play store, I downloaded from my laptop it won't show
0
Kuchenesser that's overload of ram. I mean increase of ram try to delete some files.
0
Guys, I don't know what is wrong with Android Studio, it's not available on my Play Store, I need to get started to build my app before I graduate from high school