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

    Vivek Modi

    04/04/2025, 9:41 PM
    hey can we change package name and application id all multi module project in android studio at same time?
  • z

    Zoltan Demant

    04/08/2025, 9:04 AM
    Copy code
    Non-Android source sets detected in 'abc'
    Gradle source sets ignored: jvmMain, jvmTest.
    I get this warning for most of the modules in my project. Everything runs just fine, but it doesnt feel right with IDE basically screaming at me all the time. Does anyone know what causes it?
    same 3
    m
    • 2
    • 2
  • l

    Lan s

    04/11/2025, 1:56 AM
    The IDE is running low on memory and this might affect performance. Please consider increasing the heap size. It's really memory-intensive, can you optimize it?
    šŸ‘€ 2
    same 1
  • m

    Meet

    04/21/2025, 5:27 AM
    Where is the official source code for Android Studio's built-in project templates? Are they available on a public GitHub repository?
    n
    • 2
    • 3
  • z

    Zoltan Demant

    04/22/2025, 1:58 PM
    The process cannot access the file because it is being used by another process. Besides the time consuming ways: killing java.exe, rebooting, invalidate caches.. Is there any other way I can either stop this from happening, or at least fix it in a faster way? It only happens when compiling Android on Windows, happens roughly every 2-3 minutes.
    e
    • 2
    • 1
  • t

    Thierry Kh

    04/25/2025, 3:06 PM
    Hello. Am i the only one who has an issue with the controls of external emulators on AS ? It's been like that for several weeks now, when i move the emulator from a monitor to another back and forth, it infinitely scales up. Making the buttons unusable because they are outside the screen.
    šŸ˜‚ 5
    😯 2
    c
    c
    • 3
    • 5
  • z

    Zoltan Demant

    05/05/2025, 1:08 PM
    Copy code
    Error running 'app'
    getGradleProjectPath(Module: '<http://Progression.app|Progression.app>') == null
    Does anyone know what causes this and how I can fix it? Sometimes I can run my app, other times I cant unless I reboot (or cry enough in a corner). Ive tried invalidating pretty much every cache I can think of; it does not seem to help.
  • t

    Timz Owen

    05/07/2025, 8:05 PM
    looking for a KMM sdk for doing kyc verication that works on both devices
  • m

    Mark

    05/17/2025, 7:36 AM
    I often find when dragging a kotlin source file from one location to another, the main class is transferred over fine but the extensions (including private ones) are not. Is this intentional?
    āž• 1
  • m

    Mark

    05/18/2025, 9:18 AM
    I’m getting into Compose Multiplatform and tackling resources at the moment. I have a
    composeResources
    folder under
    commonMain
    but it doesn’t show up in the Android project pane? Is that a known issue? Also,
    Find Usages
    does not work for strings in that folder. Android Studio Meerkat Feature Drop | 2024.3.2
    c
    z
    • 3
    • 9
  • u

    ursus

    05/24/2025, 10:03 PM
    This makes me want to scream. I open a project template in AS, trying to do a hello world, and
    listOf
    is not available and instead im getting all this androidx.collections spam. WHY
    c
    z
    s
    • 4
    • 5
  • s

    svenjacobs

    05/27/2025, 10:22 AM
    Hello guys, I noticed a bug with Android Studio when working with a KMP library and using Gradle's dependency substitution. Let's assume I have the following project structure.
    Copy code
    lib
    app
    Both are Gradle projects.
    lib
    is a KMP library with a Gradle module named
    library
    and
    app
    is a regular Android app. In
    settings.gradle.kts
    of
    app
    I include
    lib
    and make use of dependency substitution.
    Copy code
    includeBuild("../lib") {
        dependencySubstitution {
            substitute(module("my.example.library:library")).using(project(":library"))
        }
    }
    This works from the terminal but unfortunately when opening
    app
    in Android Studio I get the following error in the Sync window and the project cannot be loaded/synced
    Copy code
    Expected android module not found! /Users/sven/Developer/Workspace/kmp-substitution/app::library
    I can reproduce it with Android Studio Meerkat Feature Drop | 2024.3.2 (AGP
    8.10.0
    ) as well as Android Studio Narwhal Feature Drop | 2025.1.2 Canary 2 (AGP
    8.12.0-alpha02
    ). Gradle version is
    8.14.1
    . Kotlin
    2.1.21
    . An example project that reproduces this can be found here. Has anyone seen this error before and found a solution? If not, where would I best report this bug? I'm not sure if this bug is related to Android Studio, Gradle or maybe KMP?
    g
    • 2
    • 2
  • r

    Rok Oblak

    05/29/2025, 4:51 AM
    Is this bug reported yet? On
    Android Studio Meerkat | 2024.3.1 Patch 2
    I randomly lose all context of a type, all over the codebase. And this even happens in two separate projects I have tried.
    āž• 2
    c
    • 2
    • 1
  • s

    Shabinder Singh

    05/31/2025, 11:44 PM
    What is this extra space I am seeing in the editor ? Too distracting..., can somebody suggest how to fix this, not aware why this might be happening
    e
    c
    • 3
    • 2
  • r

    Richard

    06/02/2025, 6:21 AM
    This happened once I updated to the latest patch: Android Studio Meerkat Feature Drop | 2024.3.2 Patch 1 Build #AI-243.26053.27.2432.13536105, built on May 22, 2025
    āž• 3
    j
    a
    a
    • 4
    • 10
  • s

    Shubham Singh

    06/04/2025, 7:13 PM
    Hi Friends, when following this guide to set up compose screenshot testing in my codebase, I see this issue in Android Studio as shown in the first image below (i.e. for the
    screenshotTest
    module, it says
    Kotlin not configured
    and does not even show the preview as well saying the error message shown in the second image below). Has anyone faced and resolved this before?
  • c

    czuckie

    06/09/2025, 12:21 PM
    am I having a berenstein bear moment- isn't CTRL+Shift+Space smart autocomplete? Like if you were doing something like
    if (myEnumType ==
    CTRL+Shift+Space it'd show you enum values that
    myEnumType
    could be? I consistently just get 'No suggestions' when I try this. Is this just me?
    āž• 1
    t
    • 2
    • 2
  • v

    Vlado ŠčeŔňÔk

    06/12/2025, 1:07 PM
    Hey, does anyone have the same problem with hot-reload for compose multiplatform and AS? I updated to Android Studio Narwhal Feature Drop | 2025.1.2 Canary 4 and option to run hotreload disappear.
  • m

    Mark

    06/17/2025, 1:03 PM
    When I move classes around, I often end up with types being fully qualified with the prefix
    _<http://root_ide_package_.com|root_ide_package_.com>.foo
    . This seems to happen with both android and KMP library modules. Anyone else seeing this? How to avoid?
    āž• 3
    m
    • 2
    • 5
  • j

    John O'Reilly

    06/18/2025, 8:50 AM
    Anybody know if latest AS Canary should support following or not now (along with CMP 1.8.2).....it was fixed in IJ 2025.1.2 and this is what AS Canary is based on but maybe other changes needed? https://youtrack.jetbrains.com/issue/KMT-879?replyTo=27-12206631
    i
    • 2
    • 2
  • z

    Zoltan Demant

    06/23/2025, 9:47 AM
    Editing anything in :app modules (or other entry point modules) is very very slow for me. Obviously a lot of dependencies that are brought in & wired together here, so I understand that a lot is happening. Anyone else running into the same thing? Any solutions? Maybe beyond the scope of this channel, but afaik, you gotta bring in all the dependencies to :app modules in order to wire everything together, no?
    c
    • 2
    • 8
  • z

    Zoltan Demant

    06/24/2025, 9:31 AM
    Any workaround for this? Kind of in a deadlock where all projects are on Kotlin 2.2.0, but then requires stuff from AS Narwhal, which breaks everything šŸ™‚ this is fine1
    Copy code
    Muxtorjon Ismoilov
    4 days ago
    Why isn't this plugin working in the Android Studio Narwhal 5?
    āž• 1
    • 1
    • 1
  • m

    Mark

    06/30/2025, 6:24 AM
    I’m not seeing ā€œExtract interfaceā€ in Android Studio Narwhal | 2025.1.1
    z
    • 2
    • 2
  • 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
  • a

    alexhelder

    07/01/2025, 12:05 AM
    Anyone having problems with kotlin scratch files in Narwhal? When I create something like
    println("hello")
    and press enter, there is no output
  • 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
    • 2
  • t

    Tapan Desai

    07/06/2025, 5:13 AM
    Does anyone know why this useful feature is disabled by default in newer version of Android Studio? I feel it should be enabled by default, I have seen many team member struggling to figure out how to enable this
    😯 1
    šŸ‘ 1
    e
    c
    • 3
    • 5
  • 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