https://kotlinlang.org logo
Join Slack
Powered by
# android-studio
  • a

    albrechtroehm

    06/30/2025, 8:50 AM
    Hello, could anybody give me a hint how I can change the color of the “Calls to @compose functions” ? I have set it to some red color tone but this setting is ignored since the IDE was updated to Narwhal. I had seen it before when narwhal was beta already but did not think to much about it. But now it’s annoying since i don’t want to change the other colors (picture in thread)
    b
    • 2
    • 8
  • j

    jQrgen

    07/01/2025, 8:26 AM
    I get “Kotlin Not configured” after upgrading to Android Studio Narwhal and then supposedly it configures with an old Kotlin version but then all lines turn red and I don’t know what to do to fix it. I have downgraded to Android Studio Meerkat to stay productive…
    s
    • 2
    • 10
  • s

    Slackbot

    07/06/2025, 5:13 AM
    This message was deleted.
    😯 1
    👍 2
    e
    c
    • 3
    • 3
  • u

    ursus

    07/10/2025, 8:11 PM
    Is it just me or is scrolling via touchpad completely unusable in Jetpack Compose previews? it doesnt respond or scrolls just a bit etc FRUSTRATING
  • n

    Nikhil Parab

    07/11/2025, 7:21 AM
    Anyone else facing build issue in stable narwhal patch 1, saying Zip end header not found?
    • 1
    • 1
  • u

    ursus

    07/12/2025, 12:41 PM
    WHERE is the
    Compact middle packages
    option that has been there for 20 years? I literally cannot find it UX at it's finest
    b
    z
    • 3
    • 3
  • t

    Thierry Kh

    07/20/2025, 6:52 PM
    Hi. I've recently updated AS to the latest version. Am i the only one who has issues with emulator statuses being stuck on starting up, getting errors about the devices already activating or unknown errors when running an app? Not to mention physical devices not being detected regularly. Android Studio Narwhal | 2025.1.1 Patch 1 Build #AI-251.25410.109.2511.13752376, built on July 9, 2025 Runtime version: 21.0.6+-13391695-b895.109 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Toolkit: sun.awt.windows.WToolkit Windows 10.0 Kotlin plugin: K2 mode GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation Memory: 4096M Cores: 16
    z
    • 2
    • 1
  • z

    Zoltan Demant

    07/25/2025, 6:32 AM
    Does anyone know if I can configure AS and/or KtLint to be consistent with formatting for these entries? Id prefer them to just be one line, but no matter what I do ... they end up mixed like this.
  • j

    jQrgen

    07/29/2025, 3:27 PM
    Android Studio Narwhal doesn’t recognise my imports? Help! I feel like I’m completely stuck trying to configure my project after upgrading to the latest Android Studio. Everything was working fine before the upgrade…
    j
    c
    y
    • 4
    • 22
  • d

    Dumitru Preguza

    08/03/2025, 3:49 PM
    What tool do you use to monitor the websocket traffic sent/received by ktor client (android, ios)? The "App inspector" tool from IDEA/AS does not intercept non HTTP traffic
    c
    • 2
    • 3
  • j

    jQrgen

    08/06/2025, 7:38 AM
    I get this message when I try to uninstall Android Studio
  • a

    alexhelder

    08/07/2025, 7:26 AM
    What version of Android Studio will support context sensitive resolution from Kotlin 2.2? It doesn’t seem to work for me in Narwhal 2025.1.2
    👀 1
    z
    • 2
    • 1
  • m

    Mark

    08/07/2025, 9:04 AM
    I just spent half an hour arguing with Gemini (agent mode) about whether
    NotificationCompat.Builder.setForegroundServiceType()
    exists. Am I going mad? It claims:
    Copy code
    I've re-examined the page you provided: <https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder>
    
    The method setForegroundServiceType IS listed on that page.
    Please scroll down on that page to the section titled "Public methods". It's a table listing all public methods.
    b
    c
    • 3
    • 13
  • t

    Thierry Kh

    08/08/2025, 9:15 PM
    Any advice on how to optimize AS on Mac ? I only have 16gb ram, the app keeps stuttering or completely freezing when the ram usage is around 85%. When the ram is not full, i find it smoother than on Windows but i lack ram...
    c
    c
    c
    • 4
    • 11
  • p

    Pragya

    08/12/2025, 8:12 AM
    I am new to Android development and I downloaded Android Studio yesterday and this was the plugin error Can anyone help me ?
    g
    c
    +2
    • 5
    • 4
  • r

    Rok Oblak

    08/15/2025, 6:43 AM
    Is this an IDE bug? pretty sure it didn't happen with earlier versions.
  • c

    Chris

    08/15/2025, 4:01 PM
    Does anyone know if it is possible to create my own module templates in Android Studio? I have a lot of feature modules to add soon and they'll all pretty much be the same basic structure to begin with.
    👀 1
  • m

    Mark

    08/16/2025, 10:10 AM
    I’m midway through migrating my Android app to KMP/CMP and have been using Android Studio up until now. Any advice on whether I should switch to IntelliJ? 1️⃣ Android Studio 2️⃣ IntelliJ
    1️⃣ 4
    2️⃣ 2
  • u

    Uberunix

    08/19/2025, 7:55 PM
    This morning I imported an image through the resource manager working on the Art Gallery practice project. I implemented it, and everything worked great. Saved the project and shut things down for a while. Now that I've just come back to it, the project would crash on every attempt to open, and it was apparently because the image reference came back null. Somehow, the image, though still in the resource manager and corresponding explorer directory, was an empty container - 0 bytes. What would cause this to happen? Is this an android studio thing or a my computer thing?
    c
    • 2
    • 1
  • u

    Uberunix

    08/19/2025, 8:13 PM
    Also, I connected my phone for wireless debugging, just paired it up with android studio, turned on the layout inspector which restarted my gallery app, and then STARTED AN EMERGENCY CALL IN THE SAFETY APP. What?? Is my code so bad that we need medical professionals on the scene?
    😅 1
    c
    • 2
    • 2
  • m

    Mark

    08/22/2025, 2:45 PM
    I seem to be getting this false positive compiler error for:
    expect class Foo(): Bar
    Copy code
    Class 'Foo' is not abstract and does not implement abstract members:
    It happens when the expect class is implementing some interface
    m
    j
    • 3
    • 6
  • s

    Slackbot

    08/26/2025, 6:52 AM
    This message was deleted.
    c
    • 2
    • 2
  • s

    streetsofboston

    08/28/2025, 7:55 PM
    Hello everyone, I wonder if this is a bug in Android Studio (Narwhal 2025.1.2 Patch1) When I have this code:
    Copy code
    if (width > 0) {
                    set(WIDTH, width.toString())
                } else if (height > 0) {
                    set(HEIGHT, height.toString())
                }
                append(DPR, "${screen.densityScale}")
    and then ask to replace the if with a when statement ("Replace 'if' with 'when'" action), then this is the result:
    Copy code
    when {
                    width > 0 -> {
                        set(WIDTH, width.toString())
                    }
                    height > 0 -> {
                        set(HEIGHT, height.toString())
                    }
                    else -> append(DPR, "${screen.densityScale}")
                }
    the
    append
    call should NOT appear in the
    else
    branch. Instead, shouldn't it stay outside the when-statement? Is this a bug?
    c
    • 2
    • 1
  • s

    Shubham Singh

    08/31/2025, 8:08 PM
    I want to file a bug for the
    Compose Preview Screenshot Testing
    component on Google's IssueTracker but for some unknown reason, the platform isn't granting me access to do so. Is anyone else facing this too?
    i
    • 2
    • 1
  • e

    eygraber

    09/02/2025, 3:29 PM
    This is more about AGP than Android Studio, but what are the implications of
    android.builtInKotlin
    becoming true, other than having to remove the
    org.jetbrains.kotlin.android
    plugin?
    👀 2
    m
    • 2
    • 3
  • t

    Tower Guidev2

    09/04/2025, 11:59 AM
    Hi I require an Android Studio Structural Search and Replace expert 😄 I wish to find and replace the following 1). find all Kotlin constructor args that have this annotation
    @JsonProperty("
    2). replace all occurances with
    @field:JsonProperty("
    c
    • 2
    • 1
  • p

    Pablo

    09/05/2025, 12:23 PM
    I updated Android Studio to this version https://android-developers.googleblog.com/2025/09/android-studio-narwhal-3-smarter-ai-backup-restore-compose-preview.html But I can't see how to dinamically resize the previews of the composables. What am I missing?
    c
    • 2
    • 1
  • c

    chi

    09/05/2025, 6:31 PM
    Android studio takes like forever to search through the project, then shows “Find usages for data class components and restructuring declarations could be disabled once it disabled for a project” while the scan takes like 2+ minutes, this is for a small project, any reason why this could be please? I’m using Android Studio Narwal 3 Feature Drop 2025.1.3
    t
    • 2
    • 1
  • m

    Mark

    09/09/2025, 6:44 AM
    Often when I copy a class, AS inserts a bunch of redundant
    .Companion
    qualifiers. Anyone else seeing this?
    same 2
    nono 2
  • a

    aishwaryabhishek3

    09/11/2025, 6:32 AM
    Have to say this year has the buggiest, laggiest android studio releases ever. My guess is its all the AI slop integrations.
    c
    t
    +2
    • 5
    • 10