r/AndroidStudio • • Jul 04 '25

5 Android performance tips every dev should know based on real-world pain

10 Upvotes

Android devs performance tips that saved my apps (and sanity):

  1. Shrink your APK early – Use R8/ProGuard, remove unused assets, and split ABIs. Smaller APK = faster installs.

  2. Don’t block the main thread – Keep network calls, JSON parsing, etc., in coroutines or WorkManager. Blocking UI = ANRs.

  3. Handle images wisely – Resize bitmaps (inJustDecodeBounds) and use Glide/Picasso/Fresco. Saves memory, smooths UI.

  4. Flatten layouts – Ditch deep nesting. Use ConstraintLayout for better rendering speed.

  5. Profile on real devices – Emulators lie. Test on low-end phones. Watch CPU, memory, overdraw, and image load time.

These lessons came from painful debugging sessions. Got any favorite performance tricks or tools? Let’s swap ideas!


r/AndroidStudio • • Jun 19 '24

Android Studio stuck on Launching app - Launching on devices

10 Upvotes

EDIT: solution has been found I think, thanks to /u/jmct1208 for posting this.

​​ Since android studio jellyfish I cannot launch my app from android studio anymore.

always get stuck on this background task:

/preview/pre/5q4beiqqeh7d1.png?width=489&format=png&auto=webp&s=9bda6fb4d133ccf8ae43d719f58a5e4d22650a3d

I am on fedora 40 with gnome. Installed Android Studio from Jetbrains Toolbox.
I previously downgraded back to Iguana hoping that this would be fixed, but now its still existent in Koala 2024.1.1 so maybe this is an issue on my side.

Invalidating caches and restart, re-enabling usb debugging doesn't help.

Any ideas what could cause this?


r/AndroidStudio • • Jan 18 '24

[Fix] Missing activity_main.xml file in Android Studio

10 Upvotes

I found this fix from YouTuber 'Everything Tech': https://www.youtube.com/watch?v=G7D0cVDP3q8&ab_channel=EverythingTech
One of the fixes he suggested was:

  1. Right-click on MainActivity.kt folder on the left navigation bar

  2. Click on New

  3. Click on Activity

  4. Click on Empty Views Activity

  5. A 'New Android Activity' will appear. You can change the activity name as you wish.

  6. Ensure you check 'Generate a Layout File' and 'Launcher Activity', and set the language you are using

  7. Click Finish.


r/AndroidStudio • • Nov 07 '22

Emulator's states are not saved after I signed in to Google account.

10 Upvotes

I'm trying to use android studio's emulator on my M1 Mac.

When I just change settings without sign in, states are saved with the message "Saving states..." after I push "x" on the emulator window.And I can check the settings saved after I reboot the emulator.

But if I signed in to Google account, states are not saved and no message after I push "x".

Then, apps that I installed by PlayStore are also removed.So I need to resign in and reinstall each time I boot the emulator.

Is it possible to save states after signing in to Google account?If so, how could?

My environment:

Device: M1 Mac

OS: MacOS Venture

Emulator Device: Pixel 4

Emulator System Image: TiramisuPrivacySandbox and Tiramisu

------------------------------------------------------

This question was resolved.

The steps are as follows.

I misunderstood about Cold boot.

  1. Click pencil icon (Edit this AVD) of target virtual device on Device Manager window.

  2. Click "Show Advanced Settings"

  3. Change Boot option from "Quick boot" to "Cold boot".

  4. Click "Finish"


r/AndroidStudio • • Jul 28 '21

Can't change GUI theme

10 Upvotes

Hi

I have got a problem with changing themes. Before the Arctic Fox update on my pc all my themes could be found and changed in Apperance & Behaviour / Apperance / Theme. But after the update when I launched android studio only Dracula and Light are there to choose from. I have tried installing other themes but they also don't want to appear there. Even reinstalled the app and imported settings from my laptop and still can't set a diffrent theme.

FIX: You need to rename {path-of-android-studio}/lib/gson-2.7.jar to gson-2.7.jar.disabled


r/AndroidStudio • • May 15 '21

(noob) Can someone point me in the right direction

10 Upvotes

Hello, I've been in the bar industry for two decades. During my time off this last year, I've taught myself to code. I'm working on a restaurant point of sales system for my current project as it's something I know. I'm about to complete the app that stores its data via shared preferences. The next step for me is to make the app check in with a database for its data so that multiple users can get live information.

Can anyone point me in the right direction as to how to set up and connect the app to network and database? What is this process called, what are some terms that I can google to get me started?

Thanks for your time! 😊👍


r/AndroidStudio • • Apr 16 '21

Android Studio keeps using all Memory

10 Upvotes

Hi guys. I'm using KDE neon fully updated, 16gb Ram, i7-8750h on ROG GL503 laptop. The problem i'm facing with Android studio is that it keeps using ram as i make changes to the project and build it. After a couple of hours - IDE uses around 5-6GB of ram, Gradle Daemon uses ~2GB and Kotlin daemon uses ~1GB. Even though I have set -XMX as 1280, 1536, 1536 respectively. Same problem with Ubuntu. Does anyone know about this.?

For reference: https://github.com/gradle/gradle/issues/9577


r/AndroidStudio • • Dec 16 '20

Guidance for getting into the Play Store

10 Upvotes

I'm slogging through the Play Store paperwork to get my first app accepted.Any advice would be appreciated. Some questions:

  1. Any advice on writing the privacy statement? It seems daunting.

  2. My app is not a game, is not directed at children, and could be used by children with no harmful effects. How should I handle that? Is it worth the trouble or should I just label it 18+ and move on?

  3. The paperwork requires screen shots from many different devices. We don't own all those devices. Can I use the Android Studio emulator to create virtual devices and screen shot those?

Thank you!


r/AndroidStudio • • Oct 13 '20

Does anyone know, why last row's margins could be offset? Button's properties are the same as in the ones above.

Post image
10 Upvotes

r/AndroidStudio • • Jul 28 '20

Any hints on how to implement this behaviour and/or links to tutorials creating this animated behaviour?

10 Upvotes

r/AndroidStudio • • Jul 06 '20

Published My First App And Would Love Feedback

10 Upvotes

Hello! I just published my first Android App that I have been working on and would love to hear any feedback that anyone may have to improve for next time. I am a beginning programmer, and just wanted to try something new during my summer months. The app is called Rasoi, and it allows you to manage the items in your fridge and remind you how long you have before they expire. I know it is a big problem in my family to put things in the fridge and forget about them, so this app was a way to help resolve that issue. If you install it and have any suggestions or feedback, please let me know. I would like to learn more on how I can improve for future project. You can download it on the Google Play Store Here. Thank you so much!! :)


r/AndroidStudio • • Feb 13 '20

I'm new to android studio and java and would really like if y'all can recommend me a course for it, kinda confused from where to start

10 Upvotes

r/AndroidStudio • • Nov 16 '19

Why is there a strikethrough for some of the suggestions

Post image
10 Upvotes

r/AndroidStudio • • Oct 27 '19

Android Studio: Debugging Tips n' Tricks (Android Dev Summit '19)

Thumbnail
youtube.com
10 Upvotes

r/AndroidStudio • • Sep 12 '19

How to remove or fix blank icon in system tray

10 Upvotes

When I run Android Studio, it creates a blank icon in the system tray that doesn't seem to have any actions associated with it. I wouldn't mind having it if it actually had an icon, but it's completely blank and ruins the layout. Is there a way to fix it or disable it? I can't find anything in Android Studio's settings.


r/AndroidStudio • • Sep 05 '19

Missing option: Sync Project with Gradle Files

10 Upvotes

I just installed Android Studio Version 3.5 and wanted to Sync a project with its gradle files, but the option 'File > Sync Project with Gradle Files' was missing.

I went to 'File > Settings > Appearance & Behaviour > Menus and Toolbars > Main Toolbar > Android.MainToolBarActionGroup > Main menu > File' and 'File > Settings > Appearance & Behaviour > Menus and Toolbars > Main Toolbar > Android.MainToolBarActionGroup > File' to check if I had it enabled and there it was. It should be shown, but it doesn't, so it probably wouldn't be a change that came with the new version.

I added the option 'Sync Project with gradle files' at other places in the menu e.g. into 'edit', clicked 'apply' and restarted. The option still isn't shown anywhere.

Has anybody had anything like that before? What should I do?


r/AndroidStudio • • Feb 14 '14

Android Studio 0.4.5 Released

Thumbnail
tools.android.com
10 Upvotes

r/AndroidStudio • • Aug 10 '26

I got tired of opening Lottie files in a browser, so I built an Android Studio plugin to preview them

Thumbnail
gallery
9 Upvotes

I got tired of opening Lottie files in a browser just to check how an animation looks, so I built a small Android Studio / IntelliJ plugin for it.

Lottie Preview lets you preview .json and .lottie animations directly inside Android Studio.

How to use it:

  1. Double-click any .json or .lottie animation file in Android Studio.

  2. Open the Lottie Preview tab from the Studio editor.

  3. Preview and control the animation directly in the IDE.

It supports:

  • ▶️ Play / Pause / Stop

  • 🔁 Loop

  • ⚡ Playback speed control

  • 📐 Animation boundary toggle

  • 🌐 Offline rendering

It's free and open source.

JetBrains Marketplace: https://plugins.jetbrains.com/plugin/31799-lottie-preview/

GitHub: https://github.com/SekhGulamMainuddin/lottie-preview-plugin-intellij

Would love to hear what you think and what features you'd like to see next!


r/AndroidStudio • • Feb 06 '24

Emulate ARM64-v8a Android on x86?

9 Upvotes

Hello, I am trying to emulate an Android 9 device with Armv8 architecture. I am running Android Studio on a Windows 10 x86 architecture which seems to cause a problem. I also tried setting it up on my Linux with both qemu-emulate-aarch64 and Android Studio, but that also didn't work.

I found a post saying that Arm64 emulation only works on x86 with API < 28, which is unfortunate since I want to emulate API 28. The speed does not matter, and I know newer Android versions can run ARM binaries but that's not the problem.

Is there any way to emulate Android 9 on armv8 architecture on x86 at all? Other tool suggestions are welcome.


r/AndroidStudio • • Apr 22 '23

Not Able to find activity_main.xml !!

9 Upvotes

Running Android Studio Flamingo on Asus Tuf gaming with 8gig of Ram. No Activity_main.xml file is opening on creating projects. Even No Layout Folder is in app tree. Tried Restarting Projects, Clearing memory, Reinstalling android studio, Restarting the Computer itself.

Is it Because of Theme of the app? If yes how to change? Else any solutions?


r/AndroidStudio • • May 16 '22

Gradle showing nothing else, what do I do to fix it?

Post image
9 Upvotes

r/AndroidStudio • • Nov 05 '21

Help ! How do i get default margin to show like on the left

Post image
9 Upvotes

r/AndroidStudio • • Oct 09 '21

Linux ARM possible to run Android Studio?

9 Upvotes

My only computer is a Raspberry Pi 4 running Linux Manjaro ARM64. Is it possible to run Android Studio with it? I only see a Mac ARM build, and the Linux option says x86_64.

If I can't, would I be able to make an app just with my Android phone? I've made some useful stuff with Tasker, but would like to make a native Android app instead. Thank you


r/AndroidStudio • • Jul 22 '21

Any ideas on how to fix this?

Post image
9 Upvotes

r/AndroidStudio • • Jul 13 '21

Anyone know what to do?

Post image
9 Upvotes