https://kotlinlang.org logo
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
android-studio
  • m

    MBegemot

    01/17/2023, 10:51 AM
    Failed to load JVM DLL C:\Program Files\Android\Android Studio\jbr\\bin\server\jvm.dll Notice the double black slash after jbr, the file is indeed at jbr\bin\server\jvm.dll. What can I do? Installing Electric Eel 2022.1.1
  • y

    Yingding Wang

    01/17/2023, 9:45 PM
    my keystore jks file from an Intel Mac, can not be read on a M1 mac AS Studio, is this a known issue? How can i fix it?
    c
    • 2
    • 4
  • k

    kevindmoore

    01/18/2023, 5:42 PM
    Can anyone recommend a tool for dependency management? AS doesn't seem to be able to handle dependencies that are defined as variables and the ben-manes plugin is taking over 40 minutes to produce a report
    e
    j
    m
    • 4
    • 11
  • s

    Stylianos Gakis

    01/20/2023, 11:33 PM
    Generating a new blank project using Giraffe 2022.3.1 Canary 1 results in the project not even syncing, with the error shown:
    A build operation failed.
        com/android/sdklib/repository/legacy/LegacyDownloader has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
    com/android/sdklib/repository/legacy/LegacyDownloader has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
    I understand that it doesn’t like which JVM version is used somewhere somehow (61 -> Java 17, 55 -> Java 11 btw) but couldn’t find something in AS preferences. Any ideas?
    • 1
    • 2
  • b

    Brady Aiello

    01/22/2023, 7:56 PM
    I couldn't find an answer to this. I removed a Gradle module from a project, removed its only reference in the project, in settings.gradle.kts, deep-cleaned the project, and AS is still trying to sync a module that is no longer there. How do I fix that? Oh, and it's treating those directories as projects, even though they were created as modules, and aren't in the projects list.
  • j

    jasu

    01/23/2023, 9:45 AM
    Android studio layout inspector should have feature to show currently visible activity/fragment(s)/ComposeFunction
    c
    • 2
    • 6
  • t

    Tapan Desai

    01/25/2023, 4:41 AM
    Hello everyone. I have enabled experimental ui in Android Studio Flamingo Beta 1. While the new ui is really great, I am facing one issue here. Whenever I want to attach a debugger to a process, I have to do this (see attached screenshots) Is there a way to enable toolbar like in old ui? I have already tried
    View: Show Main Toolbar
    (4th option is 1st screenshot), but that didn’t help Thanks in advance!
    c
    m
    • 3
    • 12
  • a

    Alexandru Hadăr

    01/25/2023, 1:29 PM
    In the new UI, where can I select my target device? I only see the button to run, but can’t specify the target. Android Studio Flamingo | 2022.2.1 Beta 1 EDIT: Solved, thanks to @Beowulf. Right click on the toolbar and add the
    Select Device
    widget.
    m
    b
    +3
    • 6
    • 17
  • m

    Marko Novakovic

    01/27/2023, 9:44 AM
    why Android Studio Giraffe supports AGP 7.4.0 but latest Intellij IDEA 2022.3.2 doesn’t?
  • l

    Lilly

    01/27/2023, 4:33 PM
    Did someone face the issue that Compose `@Preview`s cannot be run? There is simply no run button to run the Preview.
    Android Studio Giraffe | 2022.3.1 Canary 2
    Build #AI-223.7571.182.2231.9523943, built on January 25, 2023
    Runtime version: 17.0.5+0-b2043.56-9484017 amd64
    VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
    Windows 11 10.0
    GC: G1 Young Generation, G1 Old Generation
    Memory: 2048M
    Cores: 8
    Registry:
    external.system.auto.import.disabled=true
    ide.text.editor.with.preview.show.floating.toolbar=false
    EDIT: Flamingo Beta works like expected. EDIT2: I filed an issue: https://issuetracker.google.com/issues/266967484
  • t

    Tapan Desai

    01/31/2023, 10:27 AM
    Hello, I am facing issue with compose previews on Flamingo Beta 1 After each and every change, even the smallest one like changing background color, I have to refresh the preview manually by click the refresh button. Can anyone please tell me how do I resolve this?
    c
    • 2
    • 12
  • s

    Stylianos Gakis

    02/02/2023, 1:32 PM
    I wonder, is there a way for AS to allow us to have multiple instances of a tool window open at the same time? My use case is I was testing something on a couple of API versions at the same time, so having multiple emulators open at the same time, however I can only see one of them at the same time as the “Running Devices” tool window only shows one tab at the same time. I tried undocking the window, choosing all “View Mode” but none seem to allow me to see multiple at the same time, preferably even side by side if not as separate windows. Am I missing something or does this feature simply not exist?
    c
    • 2
    • 9
  • j

    jasu

    02/03/2023, 12:36 PM
    When I have selected only 1 file to commit, AS automatically commits whatever is there in change list. It more filter files who are unchecked before committing. It used to work fine in older versions after committing even message says correctly that it has committed only selected no. of file but when I check commit it includes everything is there in changelist (Android Studio Electric Eel | 2022.1.1 Build #AI-221.6008.13.2211.9477386)
    • 1
    • 1
  • c

    Colton Idle

    02/03/2023, 8:18 PM
    Where do I go in AndroidStudio to load up sdk samples?
    k
    c
    • 3
    • 6
  • y

    Yingding Wang

    02/04/2023, 11:46 AM
    Is there a hack to import Samsung “Watch Face Studio” project into Android Studio?
    • 1
    • 1
  • y

    yogaboy

    02/07/2023, 8:45 AM
    is there any way how to extract
    classpath("com.google.gms:google-services:4.3.15")
    classpath("com.google.firebase:firebase-crashlytics-gradle:2.9.2")
    from dependencies to
    plugins {}
    section?
    j
    • 2
    • 2
  • m

    MarkRS

    02/07/2023, 11:09 AM
    Is expect/actual checking broken in Electric Eel? My actual Android code is marked as not having corresponding expect code. The expect code doesn't complain about missing an Android equivalent. The code builds and runs perfectly well. In addition, the "Expect-Actual Interface" inspector (?) shows nothing for the entire project. (Is this inspector present in the iOS version of AS? I can't find it).
  • p

    Pavel Sidyakin

    02/07/2023, 11:37 AM
    Cannot connect profiler with complete data to an existing process. AS: Flamingo | 2022.2.1 Beta 1
    • 1
    • 3
  • j

    jasu

    02/07/2023, 11:48 AM
    Android studio
    emulator tool window should have feature to show Ruler on X and Y axis
    . This will helps create better apps while aligning content in synergy
  • c

    Colton Idle

    02/08/2023, 1:40 AM
    Giraffe Canary 3 is out. no more freezes! yay edit: oh no. beta 2 seems to now have the same hang issue as canary 2
    e
    • 2
    • 5
  • s

    Stylianos Gakis

    02/13/2023, 8:11 PM
    Does Gradle 8.0 coming out mean that Flamingo is gonna become stable soon, or will Electric Eel need to support 8.0 as well, or will it just not support it until Flamingo is gonna naturally come to a stable release (maybe weeks/months later)? Don’t really know what the precedent is there so just curious if someone else knows.
    e
    • 2
    • 2
  • c

    chanjungskim

    02/14/2023, 9:41 AM
    I created a new project with intelliJ and how can I show desktop?? with todoapp, there are 'desktop', 'web', etc. But I see nothing here.
    c
    • 2
    • 1
  • y

    yogaboy

    02/14/2023, 12:39 PM
    Does anybody have the same problem as we? We have 1. Android Studio Giraffe | 2022.3.1 Canary 4, / Mac M1 version 2. we create new default project with empty Activity 3. If we run project in phone or emulator in dubug …. the AS Stop working 🛑 (the debug freeze application) Only what we can do is stop Application and run it without debug mode The AS Flamingo works properly on the same computer. We are 3 developers and it’s the same in each macbook
    k
    c
    • 3
    • 19
  • c

    Colton Idle

    02/18/2023, 2:26 AM
    anyone know where android studio commits are made? specifically im trying to look up a change id:
    I6d97e82aba77242e9b70a5084f101037888164fc
    mentioned here: https://issuetracker.google.com/issues/186924459#comment10 the regular android gerrit comes up with 0 results for that change id unfortunately.
    e
    • 2
    • 3
  • j

    Joseph Hawkes-Cates

    02/28/2023, 9:17 PM
    Anyone else seeing double clicking to jump to source in the Build Output window not working in Electric Eel? The output shows the full filepath of the file whereas I could’ve sworn it used to just be the file name and I have to click on each one and then go over to the other pane and click on the link to the file.
    • 1
    • 1
  • m

    Mark

    03/08/2023, 3:00 AM
    Auto completion doesn’t seem to work for top-level operator extension functions like:
    operator fun Foo.Companion.invoke() = Foo.createInstance()
    I type “Foo” but auto-completion doesn’t bring up any suggestion. I need to autocomplete
    Foo.invoke
    instead (to insert the
    invoke
    import) and then I can remove the
    invoke
    (now that the import has been added). To test this, you need to have the declaration in a different file to where you are calling, of course.
  • j

    John O'Reilly

    03/11/2023, 3:35 PM
    Seeing an issue in Canary where this is periodically shown even though appropriate
    OptIn
    is already included at the file level. Not sure if it's known issue? I can "fix" it (for a while anyway) by accepting the option to add....and then end up with something like following!
    @file:OptIn(ExperimentalPagerApi::class, ExperimentalMaterial3Api::class,
        ExperimentalPagerApi::class, ExperimentalMaterial3Api::class, ExperimentalMaterial3Api::class
    )
  • t

    Tarek Mohamed

    03/14/2023, 9:13 AM
    when update android studio to Android Studio Electric Eel | 2022.1.1 Patch this happen in gradle.kts any recommendation this the error Cannot access 'java.lang.Object' which is a supertype of 'org.gradle.plugin.use.PluginDependenciesSpec'. Check your module classpath for missing or conflicting dependencies
    m
    • 2
    • 1
  • e

    enighma

    03/17/2023, 11:08 PM
    Converting to kts script Is there an easy way to convert a .gradle file to a .gradle.kts file? I imagine it would be something built into AS if that was the case.
    e
    c
    • 3
    • 3
  • z

    zalewski.se

    03/19/2023, 4:54 PM
    In Android Studio Giraffe | 2022.3.1 Canary 9
    Build #AI-223.8617.56.2231.9716135, built on March 9, 2023
    The auto completion suggests an extension function that is inside of
    internal object BoxScopeInstance
    . Only when you import it, you will get an information
    Cannot access 'BoxScopeInstance': it is internal in 'androidx.compose.foundation.layout'
    a
    • 2
    • 1
Powered by Linen
Title
z

zalewski.se

03/19/2023, 4:54 PM
In Android Studio Giraffe | 2022.3.1 Canary 9
Build #AI-223.8617.56.2231.9716135, built on March 9, 2023
The auto completion suggests an extension function that is inside of
internal object BoxScopeInstance
. Only when you import it, you will get an information
Cannot access 'BoxScopeInstance': it is internal in 'androidx.compose.foundation.layout'
a

ayodele

03/20/2023, 8:48 AM
Happens in electric eel too.
View count: 4