https://kotlinlang.org logo
Docs
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
  • r

    rudolf.hladik

    04/07/2021, 8:13 AM
    Do you deal with unavailable custom templates everyday? Have a look at my solution, how to solve it easily. https://twitter.com/Terrell_6/status/1379701458245931009?s=20
    c
    • 2
    • 7
  • l

    Lilly

    04/08/2021, 12:11 AM
    I currently upgraded Android Studio to Canary 14 which forces me to update Gradle to 7.0-rc-1, so I upgraded Gradle to rc-2. Now I'm not able to run my android project. It uses a composite build (which is also a standalone project) to configure the project but the build is not included anymore. At first I upgraded the composite build but one issue occured, see screenshot. Further I changed JDK (to 16) and did an Invalidate and Restart. Anyway I'm not able to build the composite build neither with AS nor with IntelliJ. Any ideas?
    e
    • 2
    • 5
  • j

    John O'Reilly

    04/08/2021, 1:58 PM
    I frequently have both stable and canary versions of Android Studio open. Whenever I close Canary version I see any devices that I connected to over "adb connect" disconnected....is that expected?
    e
    • 2
    • 2
  • y

    Yashar

    04/09/2021, 12:26 PM
    For those who are having issues (lag/freeze), there is an open source version of Arctic Fox that supports M1: https://github.com/dsa28s/android-studio-apple-m1 It is also buggy so use it at your own risk, but I've had more success so far.
    👍 2
    m
    • 2
    • 2
  • g

    Gabriel

    04/10/2021, 12:41 PM
    Anyone having problems with kotlin on the latest canary? Things like map, listOf, random are all showing as unresolved references, but they build and run fine, it's litterally just the ui in AS
    m
    • 2
    • 2
  • c

    Colton Idle

    04/11/2021, 2:06 AM
    Michal no one actually knows. But my guess is that android studio is waiting for the big google io conference next month to make some waves. My prediction 4.2 RC 1 moves to stable. Arctic fox canary ends up moving to beta. Compose moves to RC and so you can use it outside of canary for first time in AS beta. Gradle 7 released yesterday with native m1 support. Kotlin 1.5 stable. New canary based off of 2021.1 with m1 support. Just so many things lined up to release in the next month or so. 🤞 Gradle 7, Kotlin 1.5, AS 2020.3.1 Beta, AS 4.2 Stable, AS 2021.1 canary, Compose RC/Stable 🤞
    m
    • 2
    • 1
  • c

    Colton Idle

    04/12/2021, 1:14 PM
    Android studio is slow at everything
    c
    • 2
    • 2
  • z

    zsperske

    04/14/2021, 5:46 PM
    Does anyone know how to programatically convert an SVG file into a vector drawable? I'm trying to automate the process you go through when creating a vector asset with Android Studio.
    c
    j
    • 3
    • 4
  • d

    Deepak Gahlot

    04/16/2021, 3:18 AM
    Hi All, After updating to beta04 for compose. I'm seeing a lots of unresolved references regarding the Kotlin based ArrayList or HashMap that i was using.
    s
    c
    • 3
    • 7
  • d

    d.satyanov

    04/18/2021, 9:00 PM
    I faced a problem with AS Canary 14 - IDE doesn’t see collections in the Kotlin stlib jar. Found these two issues (first and second) in the bug tracker and the question on SO that seem to be relevant to the problem. I thought the cause is in the Gradle plugin with version
    7.0.0-alpha14
    and Gradle with version
    7.0.0
    , so I decided to install Canary 13 to downgrade versions. Canary 14 doesn’t work with versions lower than
    7+
    as I understand. I did it on mac: • Deleted
    Android Studio <http://Preview.app|Preview.app>
    from
    Applications
    . • Deleted
    AndroidStudioPreview2020.3
    (or similar to that) from
    $User/Library/Application Support/Google
    . ◦ Press `cmd+shift+.`(the last one is a dot) to show hidden folders and files in Finder because
    Library
    is hidden. • Download Canary 13 and copy it in
    Applications
    . I’m not sure if all steps are required but it worked for me. Canary 13 uses Gradle plugin with version
    7.0.0-alpha13
    and Gradle with version
    6.8.2
    (not sure about exact version but it’s definitely lower than
    7+
    ). So it works for me - the problem was solved. After that I try to update Gradle plugin to
    7.0.0-alpha14
    and Gradle to
    7.0.0
    and.. it also works. I put Canary 14 to the ignore list to avoid update notification. Just want to share this info in case it helps someone.
    c
    k
    k
    • 4
    • 3
  • u

    ultraon

    04/18/2021, 11:44 PM
    Who knows, why Android Studio 4.2 RC1 doesn't show
    Gradle Tasks
    for
    KMM
    project (project is built from the scratch using KMM official plugin)?
    ➕ 1
    m
    c
    • 3
    • 3
  • a

    Alexandru Hadăr

    04/19/2021, 11:20 AM
    Is any ETA for AndroidGraldePlugin v7.0 to reach stable state?
    j
    • 2
    • 1
  • l

    Lilly

    04/19/2021, 7:41 PM
    Does someone use AS Canary 14 and can't see the JDK settings under project structure page?
    c
    l
    d
    • 4
    • 4
  • z

    Zach Klippenstein (he/him) [MOD]

    04/30/2021, 12:37 AM
    Anyone with an M1 update to canary 15 yet? https://issuetracker.google.com/issues/179062806#comment46
    m
    c
    • 3
    • 2
  • d

    Daniele B

    04/30/2021, 4:24 PM
    I have downloaded Canary 15, and I get this error. Is “isShrinkResources” deprecated?
    m
    • 2
    • 1
  • s

    Se7eN

    05/01/2021, 1:10 PM
    Anyone else not being able to use the emulator? It crashes as soon as it starts
    c
    • 2
    • 3
  • r

    rsktash

    05/04/2021, 1:13 AM
    I can’t see gradle tasks when using last canary and beta AS. Anyone else experience same issue?
    ➕ 6
    y
    • 2
    • 1
  • m

    Michal Klimczak

    05/05/2021, 6:51 AM
    There is some way to make compose work on stable android studio, right? Anyone tried that?
    m
    c
    • 3
    • 3
  • m

    Marko Novakovic

    05/05/2021, 12:49 PM
    does Android Studio works well on Big Sur 11.3? Intel chip. I know there were some problems with previous versions
    u
    m
    • 3
    • 15
  • s

    Susheel

    05/11/2021, 9:16 PM
    Does anyone know where all the gradle tasks went after upgrading to 4.2? In the gradle panel on the top-right section I was able to get a bird-eye view of all the gradle tasks that are available for each of the modules and the rootproject and I don't see the tasks anymore.
    w
    • 2
    • 2
  • c

    Christopher Elías

    05/15/2021, 1:25 AM
    Hello folks, I have to enable something? This is happening after I update my A.S to Android Studio 4.2.1 Build #AI-202.7660.26.42.7351085, built on May 10, 2021 Runtime version: 11.0.8+10-b944.6842174 amd64 VM: OpenJDK 64-Bit Server VM by N/A Windows 10 10.0 GC: G1 Young Generation, G1 Old Generation Memory: 2048M Cores: 8 Registry: external.system.auto.import.disabled=true Non-Bundled Plugins: org.jetbrains.kotlin
    m
    • 2
    • 1
  • c

    Colton Idle

    05/15/2021, 2:42 AM
    I've seen bugs reported for the above and I had it happen to me recently. I simply uninstalled and reinstalled and it worked, but if you want you can run https://github.com/rock3r/deep-clean with the --nuke option and it should put you in a working state. If you don't want to go that route, try to lookup AS caches and delete them and restart.
    m
    a
    • 3
    • 2
  • m

    MarkRS

    05/16/2021, 12:05 PM
    Anyone here running under linux? I am and the 4.2 AS update is disastrous from a UI pov, but worse than that the memory consumption is huge (and was under 4.1) ! Christopher Elias' message says he's running in 2Gb of RAM, for me AS takes up that much RAM before I've built my (not very large) app. Building takes another 2. Can I have done something which is making the memory use so huge? How would I identify it if I have?
    c
    a
    • 3
    • 13
  • g

    gowthamgts

    05/16/2021, 5:38 PM
    i’m facing this suddenly. i’m running a 16gb macbook pro. also tried increasing the vmoptions file, still no luck. is this related to https://kotlinlang.slack.com/archives/CRDCFF3RC/p1621166743103200?
    c
    • 2
    • 7
  • m

    MarkRS

    05/18/2021, 2:11 PM
    Is it possible to run IDEA community version on the same codebase that I'm using AS on? I'm assuming the huge problems that have just surfaced for me in AS are due to Google not Intellij and it would be good to test that.
    j
    a
    • 3
    • 2
  • a

    Abhishek Dewan

    05/20/2021, 12:17 AM
    Has anyone noticed that the API 30 emulators keep crashing the System UI process more often ! Not sure if it’s just my two laptops which has this problem ?
    u
    • 2
    • 5
  • r

    rudolf.hladik

    05/20/2021, 8:28 AM
    I hoped that AS Bumblebee will include support for CodeWithMe plugin which is bundled in IJ Idea 2021.1.1 which is Bumblebee based on. Am I missing something?
    y
    • 2
    • 2
  • v

    Vitaliy Zarubin

    05/20/2021, 9:44 AM
    Why did I update? Bumblebee for what? 🥴
    j
    t
    • 3
    • 8
  • a

    Abhishek Dewan

    05/21/2021, 9:30 PM
    Has anyone else noticed this problem where intellisense in AS will stop working completely. I just upgraded to Arctic Fox beta 2
    • 1
    • 1
  • a

    Abhishek Dewan

    05/28/2021, 5:46 AM
    Hi guys not sure if this in the right place but I noticed something odd when trying to write the following code
    val isExpanded by remember { mutableStateOf(false) }
    When I try to write the above, the ide doesn't auto import all of the necessary things require to make the delegation work and it shows me an error. However, if I copy the same kind of code from let's say a compose example, then the ide auto imports the right files needed. Is this a known bug? I am running arctic fox beta 2
    Error.mov
    s
    e
    • 3
    • 2
Powered by Linen
Title
a

Abhishek Dewan

05/28/2021, 5:46 AM
Hi guys not sure if this in the right place but I noticed something odd when trying to write the following code
val isExpanded by remember { mutableStateOf(false) }
When I try to write the above, the ide doesn't auto import all of the necessary things require to make the delegation work and it shows me an error. However, if I copy the same kind of code from let's say a compose example, then the ide auto imports the right files needed. Is this a known bug? I am running arctic fox beta 2
Error.mov
s

Slava Glushenkov

05/28/2021, 5:54 AM
It's known issue. Add import androidx.compose.runtime.getValue manually.
👍 1
e

ephemient

05/28/2021, 6:47 AM
https://youtrack.jetbrains.com/issue/KT-39199
View count: 2