+ 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

2nd May 2024, 4:38 PM
Kuchenesser
16 odpowiedzi
+ 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
2nd May 2024, 4:51 PM
Mihaly Nyilas
Mihaly Nyilas - avatar
+ 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.
2nd May 2024, 5:12 PM
Ausgrindtube
Ausgrindtube - avatar
+ 3
Sweet! You got it solved!
3rd May 2024, 5:01 PM
Ausgrindtube
Ausgrindtube - avatar
+ 2
The problem was the android version. I used android 13. After creating a pixel 8 with android 14 everything works fine.
3rd May 2024, 2:31 PM
Kuchenesser
+ 1
You could try a hello world program to see if the emulator works.
2nd May 2024, 5:50 PM
Stefanoo
Stefanoo - avatar
+ 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
2nd May 2024, 5:50 PM
RuntimeTerror
RuntimeTerror - avatar
+ 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.
2nd May 2024, 6:18 PM
Kuchenesser
+ 1
Thanks.
3rd May 2024, 5:17 AM
Kuchenesser
+ 1
Michael Cilphillis It isn't available in the play store for android just for windows, Mac os and Linux
4th May 2024, 8:02 AM
Kuchenesser
0
I use the pixel 8 as the emulator. I'll try another one
2nd May 2024, 5:19 PM
Kuchenesser
0
Consider these methods: 1.Increase of emulator ram 2.Check requirements 3.Update the app 4.check errors.
4th May 2024, 4:30 AM
Vidhya Tharan
Vidhya Tharan - avatar
0
Thanks but it already works. Where do I increase the emulator ram?
4th May 2024, 6:02 AM
Kuchenesser
0
I tried downloading Android Studio, but it's not available on my play store, I downloaded from my laptop it won't show
4th May 2024, 7:34 AM
Michael Cilphillis MC11
Michael Cilphillis MC11 - avatar
0
Kuchenesser that's overload of ram. I mean increase of ram try to delete some files.
4th May 2024, 7:38 AM
Vidhya Tharan
Vidhya Tharan - avatar
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
4th May 2024, 7:45 AM
Michael Cilphillis MC11
Michael Cilphillis MC11 - avatar